Developer’s Guide

Table Of Contents
2-6 Developer’s Guide
Centering a database window in the Kiosk screen
To center your databases in the middle of a Kiosk screen, create a
startup script that uses the Toggle Window and Set Zoom Level
script steps. When a file is opened in Kiosk mode, two things will
happen:
1 The database window snaps to fit layout objects at the right and
bottom edges of the layout.
1 If the window is smaller than the available screen area, it is
centered in the middle of the screen.
Important Before using the Toggle Window script step, perform any
script steps that affect the window display area (such as Go to Layout
or Toggle Status Area). Once the window area is determined, add the
Toggle Window script step.
The Toggle Window script step may cover up a window that has a
Quit Application button. Be sure that users can close the Kiosk
database solution easily.
Emulating menu commands and window controls
Use the following script steps to emulate menu commands and
window controls.
Creating dynamic buttons
FileMaker Developer 5.5 provides a database named Creating
Dynamic Buttons.fp5—a short tutorial for how to make a button
perform multiple scripts and appear in multiple states of operation
(such as depressed when clicked, raised when not clicked).
\Developer Extras\FileMaker, Inc\Examples\Creating Dynamic
Buttons\Creating Dynamic Buttons.fp5
Tip In Layout mode, you can see the boundaries of objects that have
scripts attached to them by choosing View menu > Show > Buttons.
For more information, see “About working with objects on a layout”
and “Using buttons with scripts” in the FileMaker Pro 5 User’s
Guide or see FileMaker Pro Help.
To emulate these
interface elements
Create buttons with these
attached script steps
Menu commands Script steps for any menu command (for example,
Sort, New Record, and Quit Application)
Zoom controls Toggle Window or Set Zoom Level
Status area control Toggle Status Area
Mode pop-up menu Enter Browse Mode, Enter Find Mode, or Enter
Preview Mode
Vertical scroll bar Scroll Window (if the layout is longer than one
screen) or View as List (if browsing)
Horizontal scroll bar Scroll Window (if the layout objects are wider
than one screen)
Window size and position Open File and Toggle Window in a startup script,
or set desired size and position before creating the
Kiosk solution
To emulate these
interface elements
Create buttons with these
attached script steps
This tutorial shows how to make a button appear
to dynamically change when it’s clicked