Help

Table Of Contents
Using FileMaker Pro Advanced tools
F
ILEMAKER PRO HELP 614
Related topics
Displaying databases in Kiosk mode (FileMaker Pro Advanced)
Creating Kiosk solutions (FileMaker Pro Advanced)
Creating dynamic buttons (FileMaker Pro Advanced)
Creating dynamic buttons (FileMaker Pro Advanced)
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:
Define the dynamic button field.
Create the dynamic button script.
Connect the field and the script.
The following example shows how to create a button that changes every time it is clicked.
To define the dynamic button field:
1. Choose File menu > Manage > Database > Fields tab.
2. Create a field named Icons and choose Container type.
3. Click Options > Storage tab.
4. Select the Use global storage checkbox and type the number of button states for the
Maximum number of repetitions.
5. Click OK.
6. In Browse mode, select the Icons field and choose Insert menu > Picture to add graphics
to the Icons field.
Tip Ensure that all graphics are the same size.
7. Choose File menu > Manage > Database > Fields tab.
8. Create a field named Buttons and choose Container type.
9. Click Options > Auto-Enter tab.
10. For Calculated value, click Specify and enter the function
GetRepetition (Icons; 1).
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 toolbar control Show/Hide Toolbars
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