Working With States
297
TPDesign4 (v3.2 or higher)
Setting State Properties
The ability to set the State Properties (including border name, border color, fill color, text color, video fill,
bitmap, bitmap justification, icon assignment, icon justification, font, text, text justification, word wrap
preference and sound) is provided at the state level, via the Properties Window - States Tab. See the following
sections for details:
Setting State Properties: General buttons - page 141
Setting State Properties: Multi-State General buttons - page 142
Setting State Properties: Bargraph buttons - page 144
Setting State Properties: Multi-State Bargraph buttons - page 146
Setting State Properties: Joystick buttons - page 151
Setting State Properties: Text Input buttons - page 153
Setting State Properties: Computer Control Buttons - page 155
Setting State Properties: TakeNote buttons - page 156
Setting State Properties: List Box Container Buttons - page 206
Setting State Properties: List Box Button Columns - page 210
Setting State Properties: Sub-Page View Buttons - page 158
Using the All States Option
Use the All States option (in the States tab of the Properties window) to apply any changes you make to all
states on the selected button.
Note that if you have multiple buttons selected (Shift+click to select multiple buttons a page), the All States
option only affects states for the button that has Edit Focus.
The button with edit focus would be the last one selected, and is indicated by having red-colored square
handles (as opposed to the black squares that indicate that a button is selected, but does not currently have edit
focus).
Removing States From A Button
States can be removed from a Multi-State General or Multi-State Bargraph button (the number of states is
fixed for the other button types) by either deleting them from the collection, or by cutting them to the
clipboard.
Deleting States
1.
Select the states to be deleted. Hold down the Ctrl key while left-clicking to add states to the selection.
Hold down the Shift key while left-clicking to add a range of states to the selection.
2. Delete the selected states by selecting the Edit > Delete, State Manager Context Menu > Delete, or the
Del key.
Cutting States To the Clipboard
1.
Select the states to be cut. Hold down the Ctrl key while left-clicking to add states to the selection. Hold
down the Shift key while left-clicking to add a range of states to the selection.
2. Cut the selected states to the clipboard by selecting Edit > Cut, State Manager Context Menu > Cut, or
the Ctrl-X keyboard accelerator.
Multi-General or Multi-Bargraph buttons must have at least two states. Actions that
would cause the number of states to drop below two are not allowed.
Comments to this Manuals