Search Locate Previous Next Contents

Tool Button – new style (TO)


Description
Toolbar button for use with the new Toolcontrol. You have no control over the layout of the buttons – they are simply created in sequence, so use the object sorter to put them into the correct order. The ToolTip gives the bubble-help to show over the button. The caption will be shown depending on the ‘ShowCaption’ property of the parent tool control. Note that the pictures on the buttons are defined by the artwork property of the parent toolcontrol, and if captions are off, the picture size determines the size of the button. You can override the picture index if you wish – by default the tools pick up the images in the order of creation.

To add separators (a vertical groove in a standard toolbar) use a toolbutton with the ‘separator’ style and no caption.

Class Property Table
NameTypeDefaultDescription
HintString
AcceleratorStringHotkey (e.g. Ctrl+S)
ToolTipStringTip (simple text vector)
ImageIndexIntOverrides default image sequence (Origin-1 always)
ActiveRuntimeBoolean singleton
StyleOneOf
MenuRuntimeFor buttons with style ‘dropdown’


Continue to: TreeView (TR)
© Copyright Causeway Graphical Systems Ltd 2003