Click or drag to resize

ToolBar Methods (Typed)

X#

The ToolBar type exposes the following members.

Functions
  NameDescription
Public methodActivate
Provide a method that is invoked when the control has focus and a window is activated.

(Inherited from Control.)
Public methodCode exampleAddBand
Use this method to add a band to the ToolBar.
Public methodAddChild (Inherited from Control.)
Public methodAddSubToolBarBand
Add a new band to the toolbar as a sub-toolbar.
Public methodAddTipText
Add a string to be displayed as tip text for a button.
Public methodCode exampleAppendItem
Add a new toolbar button item to the end of the toolbar from the list of buttons available.
Public methodAsString (Inherited from Control.)
Public methodBringToFront (Inherited from Control.)
Public methodChangeTipText
Change the current tip text for a button.
Public methodClickItem
Make a button look like it is has been clicked, indicating that it has been selected.
Public methodConfigure
This method is no longer supported. It is included only for compatibility with existing X#1.0 code.
Public methodCreateWindowEx (Inherited from Control.)
Public methodDeactivate
Provide a method that is invoked when the control has focus and a window is deactivated.

(Inherited from Control.)
Public methodDefault
Call the default windows procedure for a control and set the EventReturnValue.
(Inherited from Control.)
Public methodDeleteItem
Remove a button from the toolbar.
Public methodDestroy
Provide a method to de-instantiate a ToolBar object.
(Overrides Destroy.)
Public methodDimItem
Public methodDisable
Disable a control (until a subsequent call to Control:Enable()).
(Inherited from Control.)
Public methodDisableItem
Disable a button.
Public methodDisableTheme
Disable the WinXP theme for a control.
(Inherited from Control.)
Public methodDispatch
Provide the prototype dispatcher for events within the system when the control has focus; routing various events to their appropriate event handlers.

(Inherited from Control.)
Public methodDoAction
Public methodDrop (Inherited from Control.)
Public methodEnable
Enable a control that was previously disabled.
(Inherited from Control.)
Public methodCode exampleEnableBands
Enable toolbar band support.
Public methodEnableDrag
Allow the user to move the toolbar around with the mouse.
Public methodEnableItem
Enable a button that has been disabled.
Public methodExpose
Provide a method that is invoked when the control has focus and whenever part of the window needs repainting.

(Inherited from Control.)
Public methodFocusChange
Provide a method that is invoked when the control has focus and the input focus changes from the current control to another (or vice versa).

(Inherited from Control.)
Public methodGetButtonDescription
Retrieve the description of a toolbar button.
Public methodGetImageList
Gets the ImageList that is specified by the parameters passed.
Public methodGetTipText
Return the current tip text for a button.
Public methodHandle
Return the handle for a control.
(Inherited from Control.)
Public methodHasBorder
Check if a border has been set for the control
(Inherited from Control.)
Public methodHasStyle
Check if a style value has been set for the control
(Inherited from Control.)
Public methodHide
Hide a control so it is not visible (until a subsequent call to Control:Show()).
(Inherited from Control.)
Public methodHideItem
Hide a button.
Public methodHorizontalScroll
Provide a method that is invoked when the control has focus and a horizontal scroll bar is scrolled.

(Inherited from Control.)
Public methodInsertItem
Insert a new toolbar button item before a specified toolbar button item, from the list of buttons available.
Public methodCode exampleIsClicked
Return a logical value indicating whether the specified button is currently clicked or selected.
Public methodCode exampleIsDimmed
Determine whether a button is dimmed.
Public methodIsEnabled
Report if this control is currently enabled.
(Inherited from Control.)
Public methodCode exampleIsEnabled(Usual, Usual, Usual)
Return a logical value indicating whether the specified button is currently enabled.
Public methodIsPressed
Determine whether a button is pressed.
Public methodIsReadOnly
Report if this control is currently readonly.
(Inherited from Control.)
Public methodIsToolbarHidden
Determine whether a button is hidden.
Public methodIsVisible
Report if this control is visible (completely or partially) or hidden.
(Inherited from Control.)
Public methodKeyDown
Provide a method that is invoked when the control has focus and a key on the keyboard is pressed.

(Inherited from Control.)
Public methodKeyUp
Provide a method that is invoked when the control has focus and a key on the keyboard is released.

(Inherited from Control.)
Public methodLinkDF
Connect a control to a data field in a data server.
(Inherited from Control.)
Public methodMenuInit
Provide a method that is invoked when a pop-up menu owned by the control is about to pop up.
(Inherited from Control.)
Public methodMenuSelect
Provide a method that is invoked when an item on a menu owned by the control is highlighted.
(Inherited from Control.)
Public methodMouseButtonDoubleClick
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is double-clicked.

(Inherited from Control.)
Public methodMouseButtonDown
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is clicked.

(Inherited from Control.)
Public methodMouseButtonUp
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is released.
(Inherited from Control.)
Public methodMouseDrag
Provide a method that is invoked when the control has focus and a mouse with one or more buttons clicked is moved in the window.
(Inherited from Control.)
Public methodMouseMove
Provide a method that is invoked when the control has focus and the mouse is moved in the control.
(Inherited from Control.)
Public methodMove
Provide a method that is invoked when the control has focus and the control is moved (either by the user or by the application).
(Inherited from Control.)
Public methodOnHandleCreated (Inherited from Control.)
Public methodOnHandleDestroyed (Inherited from Control.)
Public methodOverRide
This is a compatibility method that is no longer used or needed.
(Inherited from Control.)
Public methodPaintBackGround (Inherited from Control.)
Public methodPerformValidations
Perform all the validations defined to this control's field specification (for example, required, maximum and minimum digits, maximum and minimum value, validation rule) and return the result of the test.
(Inherited from Control.)
Public methodPressItem
Press a button.
Public methodRegisterTimer
Register a timer method to be invoked for the control.
(Inherited from Control.)
Public methodRemoveTipText
Remove the current tip text for a button.
Public methodRePaint
Send an ExposeEvent to repaint the control
(Inherited from Control.)
Public methodResize
Provide a method that is invoked when the control has focus and the control changes size.
(Inherited from Control.)
Public methodRestoreUpdate
Resume all drawing updates for a control (after Control:SuspendUpdate() is called).
(Inherited from Control.)
Public methodSendToBack (Inherited from Control.)
Public methodSetExStyle
Set the exstyle for the control.
(Inherited from Control.)
Public methodSetFocus
Pass input focus to a control, thereby directing all mouse and keyboard input to the control.
(Inherited from Control.)
Public methodSetImageList
Sets the ImageList to be used by the ToolBar.
Public methodSetStyle
Set the style for the control.
(Inherited from Control.)
Public methodShow
Display a control so it is visible.
(Inherited from Control.)
Public methodShowItem
Show a button.
Public methodShowToolTip (Inherited from Control.)
Public methodSuspendUpdate
Temporarily suspend all drawing updates for a control; drawing resumes with a call to Control:RestoreUpdate().
(Inherited from Control.)
Public methodTimer
Provide a method to be invoked at specific intervals defined when the timer is registered though the RegisterTimer() method.
(Inherited from Control.)
Public methodUnClickItem
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.
Public methodUnDimItem
Undim a button.
Public methodUnPressItem
Unpress a button.
Public methodUpdate
This method is no longer supported. It is included only for compatibility with existing X#1.0 code.
Public methodValidateControl
This method validates if the control has been created and when not then it triggers the control creation
(Inherited from Control.)
Public methodVerticalScroll
Provide a method that is invoked when the control has focus and a vertical scroll bar is scrolled.
(Inherited from Control.)
Top
See Also