Version

Panel Sizing Modes

The WinStatusBar™ provides four modes for controlling the width of the panel. The mode is controlled via the SizingMode property of the panel. The panel also exposes a MinWidth property to control the minimum width of the panel.

Adjustable

The panel’s size is based upon its Width property but the panel may be resized at run-time or design-time by dragging the rightmost edge of the panel. The size of the space available for dragging will depend upon the InterPanelSpacing of the status bar. The ResizeStyle of the status bar determines whether the panel is automatically sized as the drag operation occurs or whether a splitter is rendered during the drag operation to indicate the new width of the panel. In addition, when the adjustable area to the right of a panel is double clicked, the width of the panel is set to the AutoSizeWidth if available for the style of that panel.

Automatic

The width of the panel is based on the size of its image and text. The text used to determine the AutoSizeWidth is based on the style of panel. For example, for an AutoStatusText style panel, the width of the StatusBarText from each Control is tested.

Note
Note

This style is not valid for all PanelStyles . When this style is used for ProgressBar, ControlContainer, and MDIList style panels, a SizingMode of Fixed is assumed.

Fixed

The width of the panel is set to the value of the Width property.

Spring

Once all the panels have been sized based on their respective widths, the remaining space is distributed amongst the Spring style panels. This style panel may also be used to right align other panels by placing a spring sized panel before the panels that you wish to be displayed on the right.