TdxStatusBarTextPanelStyle.ImageIndex Property
Specifies the image (if any), which can be associated with the text panel.
Declaration
property ImageIndex: TcxImageIndex read; write; default -1;
Property Value
Type |
---|
TcxImageIndex |
Remarks
Use the ImageIndex property if you wish to associate an image list with a status bar text panel. This is useful if you need custom bitmaps on your status bar. For example, you may wish to display icons that represent the connection state or a warning about an abnormal occurrence. You can do that in the following way:
Drop a TImageList or TcxImageList collection to your form and add images to it.
Assign this collection to the status bar’s Images property.
Add a new panel to the status bar.
Assign ‘Text Panel‘ to the panel’s PanelStyle property.
Assign the relevant index to the ImageIndex property of your panel.
As a result, the image is shown in the leftmost section of the status bar below:
The default value of the ImageIndex property is -1, thus no image is displayed.