TStatusBarPro
v1.72
|
Copyright ©
Kambiz R. Khojasteh. All rights reserved.
Get future component updates from http://www.delphiarea.com.
Delphi 3 | Delphi 4 | Delphi 5 | Delphi 6 | Delphi 7 |
TStatusBarPro is an improved version of Delphi's TStatusBar. Each status panel in this status bar can have its own color, font, indent, image, hint, popup menu, click event and double click event. The size of each panel can be adjusted automatically by either content of the panel or relative to size of other panels. In addition, each panel of TStatusBarPro can accept another control as its child controls.
Note: TStatusBarPro is not a subclass of TStatusBar. This control is a modified version of TStatusBar.
Special thanks to:
- Rudi Loos <loos@intekom.co.za> for adding Color property to the status panels.
- Alexander Alexishin <sancho@han.kherson.ua> for adding AutoHintPanelIndex properey and fixing a bug.
- Piet Vandenborre <plsoft@pi.be> for fixing a bug.
- Viatcheslav V. Vassiliev <vvv@spacenet.ru> for adding the Control property to the panels.
- Roland <Beduerftig@SoftwareCreation.de> for fixing a bug.
IMPROVEMENTS (in comparison with TStatusBar)
TStatusBarPro has the following new properties in Delphi 4 or higher:
- Images: TCustomImageList
Holds a list of bitmaps that can be displayed on the panels of the control.
- AutoHintPanelIndex: Integer
When AutoHint property set to true, determines on which panel hint text appears.
TStatusBarPro has the following new properties in Delphi 3:
- Images: TImageList
Holds a list of bitmaps that can be displayed on the panels of the control.
- Color: TColor
Specifies the background color of the control.
- UseSystemFont: Boolean
Specifies whether the status bar uses the system font.Type of the following event has changed:
- OnDrawPanel: TDrawPanelProEvent
TDrawPanelProEvent = procedure(StatusBar: TStatusBarPro; Panel: TStatusPanelPro; const Rect: TRect) of object
Occurs when an owner draw panel needs to be redrawn.Type of the following property has changed:
- Panels: TStatusPanelsPro
Contains lists of the status bar's panels (TStatusPanelPro).Each panel (TStatusPanelPro) has the following new properties:
- AutoSize: Boolean
Determines whether the width of the panel should be automatically adjusted according to the StatusBarPro's size. Setting this property to True, with set the AutoWidth property to False.
- AutoWidth: Boolean
Determines whether the width of the panel should be automatically adjusted according to the content of the panel. Setting this property to True, with set the AutoSize property to False.
Color: TColor
Specifies the background color of the panel.
- ParentColor: Boolean
Determines whether the panel uses the color of the TStatusBarPro that owns it.
- ImageIndex: Integer
Determines index of the image (from the TStatusBarPro.Images) that appears on the panel.
- Indent: Integer
Specifies how far the panel's contents (image and text) are indented.
- Font: TFont
Specifies the font to use when writing text on the panel.
- MaxWidth: Integer
Specifies the maximum size of the panel in pixels. When the AutoSize property is True, changing this propery has no effect.
- MinWidth: Integer
Specifies the minimum size of the panel in pixels. When the AutoSize property is True, changing this propery has no effect.
- ParentFont: Boolean
Determines where the panel looks for its font information.
- Hint: String
Contains the text string that can appear when the user moves the mouse over the panel. If this property set to blank, hint property of TStatusBarPro will be used.
- PopupMenu: TPopupMenu
Identifies the pop-up menu associated with the panel. If this property set to nil, PopupMenu property of TStatusBarPro will be used.
- Control: TControl
Determines the control that is assigned to the panel. When a control assigns to this property, the parent of the control changes to the status bar and the control covers the panel's bounding rectangle.
Each panel (TStatusPanelPro) has the following new events:
- OnClick: TNotifyEvent
Occurs when the use click the panel. If this event is unassigned, the OnClick event of TStatusBarPro will be fired.
- OnDblClick: TNotifyEvent
Occurs when the user double-clicks the primary mouse button when the mouse pointer is over the panel. If this event is unassigned, the OnDblClick event of TStatusBarPro will be fired.
TStatusBarPro component is freeware. You may copy component's files AS LONG AS YOU COPY ALL OF THEM. If you want to change the source code in order to improve the component's features, performance, etc. please send me the new source code so that I can have a look at it. The changed source code should contain descriptions what you have changed, and of course your name. The only thing you MAY NOT CHANGE is the ORIGINAL COPYRIGHT INFORMATION.
TStatusBarPro is provided "AS IS" without any warranty of any kind, either express or implied. The entire risk as to the quality and performance of the software is with you. The author is NOT liable for any DAMAGES resulting from the use and misuse of the component, especially he is NOT liable for DAMAGES that were caused BY ANY VERSION WHICH HAS NOT BEEN PROGRAMMED BY THE AUTHOR HIMSELF.
|
END OF DOCUMENT |