18 FileMaker Pro Advanced Development Guide
6. Click Create.
If you did not bind the files to a runtime application, the Developer
Utilities copy the selected database files to the Project Folder. If you
did bind the files to a runtime application, the Developer Utilities copy
all of the runtime files to a new folder created inside the Project Folder
and named after the runtime solution.
To change the default option of logging into the file with the Admin
account:
1. With the database solution open, choose File menu > File Options.
2. On the Open/Close tab, clear Log in using.
3. Click OK.
Using scripts and buttons to control your solution
You can use scripts and buttons to automate much of your database
solution, control startup behavior, emulate menu commands and
window controls, navigate, and much more. For more information
about creating scripts to automate tasks, see Help.
Tip Use the Script Debugger to test scripts. See “Stepping through
scripts” on page 55.
Centering database windows in Kiosk screens
If you maximize a layout that was designed for 640x480 on a screen
that has a resolution larger than 640x480, the layout will not be
centered. It will display in the top left corner with empty space
surrounding it. For best results, don’t maximize kiosk windows. Use
the Adjust Window[Resize to Fit] and Move/Resize Window script
steps instead to center windows based on the user’s screen resolution.
Use the Get functions to determine the resolution.
Important Before using the Adjust Window script step, perform any
script steps that affect the window display area (such as Go to Layout
or Show/Hide Status Area). Once the window area is determined, add
the Adjust Window script step.
The Adjust Window script step may cover up a window that has an
Exit 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
By using scripts and calculations to evaluate the state of button fields,
you can make dynamic buttons that change each time they are clicked.
To create dynamic buttons:
1. Define the dynamic button field.
2. Create the dynamic button script.
3. Connect the field and the script.
The following example shows how to create a button that changes
every time it is clicked.
To emulate these
interface elements
Create buttons with these
script steps attached
Menu commands Script steps for any menu command (for example,
Sort Records, Print, and Open Preferences)
Zoom controls Adjust Window or Set Zoom Level
Status area control Show/Hide 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)
Horizontal scroll bar Scroll Window (if the layout objects are wider than
one screen)
Window size and location Move/Resize Window