Text and Picture
Background pathname
Sets the path of the picture that will be drawn in the background of the object. If the object uses an icon with different states, the background picture will automatically support the same number of states.
The pathname to enter is similar as for the Pathname property for static pictures.
JSON Grammar
Name | Data Type | Possible Values |
---|---|---|
customBackgroundPicture | string | Relative path in POSIX syntax. Must be used in conjunction with the style property with the "custom" option. |
Objects Supported
Custom Button - Custom Check Box - Custom Radio Button
Button Style
General appearance of the button. The button style also plays a part in the availability of certain options.
JSON Grammar
Name | Data Type | Possible Values |
---|---|---|
style | text | "regular", "flat", "toolbar", "bevel", "roundedBevel", "gradientBevel", "texturedBevel", "office", "help", "circular", "disclosure", "roundedDisclosure", "custom" |
Objects Supported
Button - Radio Button - Check Box - Radio Button
Horizontal Margin
This property allows setting the size (in pixels) of the horizontal margins of the button. This margin delimits the area that the button icon and title must not surpass.
This parameter is useful, for example, when the background picture contains borders:
With / Without | Example |
---|---|
Without margin | |
With 13-pixel margin |
This property works in conjunction with the Vertical Margin property.
JSON Grammar
Name | Data Type | Possible Values |
---|---|---|
customBorderX | number | For use with "custom" style. Minimum: 0 |
Objects Supported
Custom Button - Custom Check Box - Custom Radio Button
Icon Location
Designates the placement of an icon in relation to the form object.
JSON Grammar
Name | Data Type | Possible Values |
---|---|---|
iconPlacement | string | "none", "left", "right" |
Objects Supported
Icon Offset
Sets a custom offset value in pixels, which will be used when the button is clicked
The title of the button will be shifted to the right and toward the bottom for the number of pixels entered. This allows applying a customized 3D effect when the button is clicked.
JSON Grammar
Name | Data Type | Possible Values |
---|---|---|
customOffset | number | minimum: 0 |
Objects Supported
Custom Button - Custom Check Box - Custom Radio Button
Number of States
This property sets the exact number of states present in the picture used as the icon for a button with icon, a check box or a custom radio button.
The picture can contain from 2 to 6 states.
- 2 states: false, true
- 3 states: false, true, rollover,
- 4 states: false, true, rollover, disabled,
- 5 states (check box and radio button only): false, true, false rollover, true rollover, disabled
- 6 states (check box and radio button only): false, true, false rollover, true rollover, false disabled, true disable.
- "false" means button not clicked/not selected or check box unchecked (variable value=0)
- "true" means button clicked/selected or check box checked (variable value=1)
Each state is represented by a different picture. In the source picture, the states must be stacked vertically:
JSON Grammar
Name | Data Type | Possible Values |
---|---|---|
iconFrames | number | Number of states in the icon picture. Minimum: 1 |
Objects Supported
Button (all styles except Help) - Check Box - Radio Button
Picture pathname
Sets the path of the picture that will be used as icon for the object.
The pathname to enter is similar as for the Pathname property for static pictures.
When used as icon for active objects, the picture must be designed to support a variable number of states.