Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxStatusBarTextPanelStyle.ImageIndex Property

Specifies the image (if any), which can be associated with the text panel.

#Declaration

Delphi
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.

See Also