The images used to render expansion buttons and check boxes.

Usage

Set_Property(OLECtrlEntID, "OLE.GlyphImages", Array)

Values

Array has the following structure:

PosNameTypeDescription
<1>Expanded ButtonMultivalueThe glyph image for the button of an expanded item
<2>Collapsed ButtonMultivalueThe glyph image for the button of a collapsed item
<3>Unchecked Check BoxMultivalueThe glyph image for an unchecked check box
<4>Check Check BoxMultivalueThe glyph image for a checked check box
<5>Mixed Check BoxMultivalueThe glyph image for a check box in the mixed/undetermined state

Remarks

The GlyphImages property allows you to customize the appearance of the expansion buttons and check boxes.

By default, the SRP Tree Control renders these elements using the current Windows theme. To customize these elements, just set the image to be used. Each field has the same multivalue structure:

PosNameTypeDescription
<1, 1>ImageFormatted StringThe path and filename of the image to be used
<1, 2>Frame CountIntegerThe number of frames the image is to be divided into
<1, 3>Transparent ColorFormatted StringThe color to be transparent, if the image does not contain transparency already

Simply pass the path and filename of an image file containing your custom glyph. If necessary, include a frame count to divide the image to even sized frames. The SRP Tree Control will use individual frames to render certain states:

GlyphFrame 1Frame 2Frame3
Expanded ButtonNormalHot 
Collapsed ButtonNormalHot 
Unchecked Check BoxNormalPressedHot
Checked Check BoxNormalPressedHot
Mixed Check BoxNormalPressedHot

You are not required to include frames for all states. For instance, if you omit a frame for the Hot state, then there will simply be no hover effect displayed to the user. There are no size limitations except that extremely small or extremely large images may clutter the interface, making it difficult to interpret. If you do choose a somewhat larger set of glyphs, you may want to increase the item heights to compensate.

Example

// Customize the glyph images 
Images = "" 
Images<1> = "BMPS\EXPANDED.PNG":@VM:2 
Images<2> = "BMPS\COLLAPSED.PNG":@VM:2 
Images<3> = "BMPS\UNCHECK.PNG":@VM:3 
Images<4> = "BMPS\CHECK.PNG":@VM:3 
Images<5> = "BMPS\MIX.PNG":@VM:3 
Set_Property(@Window:".OLE_TREE", "OLE.GlyphImages", Images)

See Also

ImagesImageConditionsImageEffectsItemHeightDefHeight

  • No labels