ToolBar Class |
|
Namespace: VO
The ToolBar type exposes the following members.
| Name | Description | |
|---|---|---|
| BandCount |
The number of bands in the toolbar.
| |
| BandImageList |
An Image List object used for the bands.
| |
| Bitmap |
The Bitmap object (containing a bitmap ribbon with one or more button images) that will be used to display buttons on the toolbar. If not assigned, the default bitmap is used.
| |
| BorderStyle |
This property is no longer supported. It is included only for compatibility with existing X#1.0 code.
| |
| BoundingBox |
The bounding box, in canvas coordinates, representing the minimal area that encloses the toolbar.
| |
| ButtonCount |
A numeric value representing the number of buttons currently on the toolbar.
| |
| ButtonSize |
A Dimension object representing the size of buttons on the toolbar. If not assigned, the default is a 16 by 16 button.
| |
| ButtonStyle |
A constant that represents how the buttons are displayed:
| |
| ClientArea |
A bounding box (group or character box) representing the area of its parent window that remains available given the placement of the toolbar.
| |
| GapSize |
This property is no longer supported. It is included only for compatibility with existing X#1.0 code.
| |
| ImageCount |
A numeric value representing the number of images in the toolbar bitmap. If a custom bitmap has been assigned to the toolbar, this value must be assigned as the number of images in that bitmap.
| |
| Location |
This property is no longer supported. It is included only for compatibility with existing X#1.0 code.
| |
| Rows |
A numeric value representing the number of rows of buttons on the toolbar.
Note that Rows now has an optional parameter, <symTB>, to indicate which toolbar, or sub-toolbar, to query. If not specified, #MAINTOOLBAR is assumed.
| |
| SeparatorSize |
This property is no longer supported. It is included only for compatibility with existing X#1.0 code.
|
| Name | Description | |
|---|---|---|
| AddBand |
Use this method to add a band to the ToolBar.
| |
| AddSubToolBarBand |
Add a new band to the toolbar as a sub-toolbar.
| |
| AddTipText |
Add a string to be displayed as tip text for a button.
| |
| AppendItem |
Add a new toolbar button item to the end of the toolbar from the list of buttons available.
| |
| ChangeTipText |
Change the current tip text for a button.
| |
| ClickItem |
Make a button look like it is has been clicked, indicating that it has been selected.
| |
| Configure |
This method is no longer supported. It is included only for compatibility with existing X#1.0 code.
| |
| DeleteItem |
Remove a button from the toolbar.
| |
| Destroy |
Provide a method to de-instantiate a ToolBar object.
(Overrides Destroy.) | |
| DimItem |
Dim a button.
| |
| DisableItem |
Disable a button.
| |
| EnableBands |
Enable toolbar band support.
| |
| EnableDrag |
Allow the user to move the toolbar around with the mouse.
| |
| EnableItem |
Enable a button that has been disabled.
| |
| GetButtonDescription |
Retrieve the description of a toolbar button.
| |
| GetImageList |
Gets the ImageList that is specified by the parameters passed.
| |
| GetTipText |
Return the current tip text for a button.
| |
| Hide |
Hide a toolbar so it is not visible.
(Overrides Hide.) | |
| HideItem |
Hide a button.
| |
| InsertItem |
Insert a new toolbar button item before a specified toolbar button item, from the list of buttons available.
| |
| IsClicked |
Return a logical value indicating whether the specified button is currently clicked or selected.
| |
| IsDimmed |
Determine whether a button is dimmed.
| |
| IsEnabled |
Return a logical value indicating whether the specified button is currently enabled.
| |
| IsHidden |
Determine whether a button is hidden.
| |
| IsPressed |
Determine whether a button is pressed.
| |
| PressItem |
Press a button.
| |
| RemoveTipText |
Remove the current tip text for a button.
| |
| SetImageList |
Sets the ImageList to be used by the ToolBar.
| |
| Show |
Display a toolbar so it is visible.
(Overrides Show.) | |
| ShowItem |
Show a button.
| |
| UnClickItem |
Make a button look like it is "clicked-out" (returned to its normal state) after it has been "clicked-in" to indicate that it has been selected.
| |
| UnDimItem |
Undim a button.
| |
| UnPressItem |
Unpress a button.
| |
| Update |
This method is no longer supported. It is included only for compatibility with existing X#1.0 code.
|
1METHOD Init(oWOwner) CLASS MyWindow 2... 3SELF:Menu := MyMenu{} 4... 5METHOD Init() CLASS MyMenu 6... 7SELF:ToolBar := ToolBar{}
| This is not necessarily the window that owns the toolbar or menu. |