Skip to main content

TdxStatusBarContainerPanelStyle Class

Defines the visual style for the status bar container panels.

Declaration

TdxStatusBarContainerPanelStyle = class(
    TdxStatusBarPanelStyle
)

Remarks

This class defines the options of style and behavior that are applied to the status bar container panels. Such panels are used for displaying other objects inside the status bar.

The following steps show how to insert a progress bar into a container panel at design time:

  • Double-click a status bar to display the Panels editor.

  • In the editor, select the panel that will be used as a progress bar container.

  • In the Object Inspector, click the dropdown button next to the panel’s PanelStyle property and select the Container Panel menu item to create a container panel. The default name of a newly created container panel is dxStatusBarContainer0 (suffix 0 indicates the panel’s position within a status bar).

  • Drop the TcxProgressBar control from the Tool Palette onto the form. The control instance’s default name is cxProgressBar1.

  • Within the Structure View, drag and drop the cxProgressBar1onto the dxStatusBarContainer0. The progress bar is automatically placed within the container panel.

Below is a sample of the status bar container panel with a progress bar inserted:

Below is an example containing an edit control:

You can use the status bar’s SimplePanelStyle.Active property to optionally switch the status bar to display a single text panel rather than all the created panels. This functionality is similar to the SimplePanel property found in the standard VCL TStatusBar component.

Inheritance

See Also