treecombobox Glyph property
Return to Introduction  Previous page  Next page
Applies to
acEdit, acNumberEdit and acTreeComboBox components as subproperty of Button structure.  

property Glyph: TBitmap;  

The Glyph property specifies the bitmap that appears on the custom button at the right side of edit control.  
Set Glyph to a bitmap object that contains the image that should appear on the face of the button. Bring up the Open dialog box from the Object Inspector to choose a bitmap file (with a .BMP extension), or specify a bitmap file at runtime.  
Glyph can provide up to four images within a single bitmap. All images must be the same size and next to each other in a horizontal row. Button displays one of these images depending on the state of the button.  
Image positionButtons state   Description  

FirstUp   This image appears when the button is unselected. If no other images exist in the bitmap, this image is used for all states.  
SecondDisabled   This image usually appears dimmed to indicate that the button can't be selected.  
ThirdClicked   This image appears when the button is clicked. The Up image reappears when the user releases the mouse button.  
FourthDown   This image appears when the button stays down indicating that it remains selected.  
If only one image is present, Button attempts to represent the other states by altering the image slightly for each state, although the Down state is always the same as the Up state.  
If the bitmap contains multiple images, specify the number of images in the bitmap with the NumGlyphs property.  

The lower left hand pixel of the bitmap is reserved for the "transparent" color. Any pixel in the bitmap which matches that lower left hand pixel will be transparent.  

See also
NumGlyphs property.