Working With Properties
285
TPDesign4 (v3.2 or higher)
State Properties
The following table describes all State Properties, accessible in the States tab of the Properties window:
State Properties
Bitmap
To apply an image file as the background image to the selected state(s), click the
browse button (...) to open the Select Resource dialog, where you can select an
image file from among those imported into the project.
If pairs of image resources exist that end in *off/*on, * f/*n, *0/*1, *1/*2 (case insen-
sitive), and the first in the pair is applied to the Off state of a General button, the sec-
ond will be automatically applied to the On state to make it easier to set up images
on a General button.
Bitmap Justification
To set or reset the justification setting for the bitmap (on the selected state(s)), click
the down-arrow and select an option from the list.
Note: For List Box buttons, this property applies to all the buttons in the selected
column.
Bitmap X Offset
Available only if the Bitmap Justification State property has been set to Absolute).
• To apply an X and/or Y offset to the bitmap (on the selected state(s)), enter the
value for the desired offset (in pixels) in these text fields.
• Alternatively, you can click the browse button (...) to open the Image/Text
Positioning dialog where you can make several alignment adjustments to the
bitmap, icon and text elements of the button, for each state.
Bitmap Y Offset
Available only if the Bitmap Justification State Property has been set to Absolute).
• To apply an X and/or Y offset to the bitmap (on the selected state(s)), enter the
value for the desired offset (in pixels) in these text fields.
• Alternatively, you can click the browse button (...) to open the Image/Text
Positioning dialog where you can make several alignment adjustments to the
bitmap, icon and text elements of the button, for each state.
Border Color
To change the border color for the selected state(s), click the browse button (...) to
open the Colors dialog.
Note: For List Box buttons, this property applies to all the buttons in the selected
column.
Border Name
To change the Border Name for the selected button, click Border Name, and select
the desired border from the drop-down list.
• If a Border Style was specified (in the General tab), then the borders listed here
are limited to those contained in the selected Border Style.
• If no Border Style was specified (none), then all border names are available in the
provided list.
• See page 386 for details on Border Styles.
Note: For List Box buttons, this property applies to all the buttons in the selected
column.
Chameleon Image
This field allows you to apply a Chameleon Image to the selected state(s).
Note: This property is only available only if the Border Name has been set to None.
• Chameleon Images can be used to create special effects such animated glow and
drop-shadows.
• Click the browse button (...) to open the Select Resource dialog, where you can
select an image to apply as a Chameleon Image.
• See page 322 for details on Chameleon Images.
Comments to this Manuals