DEFINE TOOLBAR
  

Creates a toolbar control.

SYNTAX

DEFINE TOOLBAR <ControlName>
[ OF | PARENT <
ParentWindowName> ]
[ CAPTION <
cCaption> ]
[ ACTION <
ActionProcedureName> | <bBlock>]
[ BUTTONSIZE <
nWidth> , <nHeight> ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <
cTooltipText> ]
[ FLAT ]
[ BOTTOM ]
[ RIGHTTEXT ]
[ WRAP ]
[ GRIPPERTEXT <
cCaption> ]
[ BORDER ]
[ BREAK ]

BUTTON <Controlname>
[ CAPTION <
cCaption> ]
[ PICTURE <
cPictureName> ]
[ ADJUST ]
[ TOOLTIP <
cTooltipText> ]
ACTION | ON CLICK | ONCLICK <
ActionProcedureName> | <bBlock>
[ SEPARATOR ]
[ AUTOSIZE ]
[ DROPDOWN ]
[ WHOLEDROPDOWN ]
[ CHECK ]
[ GROUP ]

……

END TOOLBAR


EXTEND STYLE

DEFINE TOOLBAREX <ControlName>
[ OF | PARENT <
ParentWindowName> ]
[ CAPTION <
cCaption> ]
[ ACTION <
ActionProcedureName> | <bBlock>]
[ BUTTONSIZE <
nWidth> , <nHeight> ]
[ IMAGELIST <
cImagelst> ]
[ HOTIMAGELIST <
cHotimagelst> ]
[ FONT <
cFontName> ]
[ SIZE <
nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <
cTooltipText> ]
[ FLAT ]
[ BOTTOM ]
[ RIGHTTEXT ]
[ WRAP ]
[ GRIPPERTEXT <
cCaption> ]
[ ROWS <
nRow> ]
[ TOOLBARSIZE <
nSize> ]
[ BORDER ]
[ MIXEDBUTTONS ]
[ BREAK ]

BUTTON <Controlname>
[ CAPTION <
cCaption> ]
[ PICTUREINDEX <
nIndex> ]
[ ADJUST ]
[ TOOLTIP <
cTooltipText> ]
ACTION | ON CLICK | ONCLICK <
ActionProcedureName> | <bBlock>
[ SEPARATOR ]
[ AUTOSIZE ]
[ DROPDOWN ]
[ WHOLEDROPDOWN ]
[ CHECK ]
[ GROUP ]

……

END TOOLBAR


TOOLBAR PROPERTIES:

·   Parent (D)
Set the name as character identifier of the parent window.
·   ButtonSize (D)
Specifies the size of the button
·   RightText (D)
Creates a toolbar with button text to the right of the bitmap
·   GripperText (D)
Specifies the text of the gripper
·   Flat (D)
Sets the flat style appearance of the button control.
·   Bottom (D)
Places the toolbar at the bottom of the window
·   Break (D)
Control passes to the statement that follows the terminated statement.
·   Wrap (D)
This style must be set to display a vertical toolbar control when the toolbar is part of a vertical rebar (pager)

TOOLBAR BUTTON PROPERTIES:

·   Caption (D)
Set caption of a ToolButton control.
·   Picture (D)
Set image name of a ToolButton control.
·   Separator (D)
Creates a small gap between buttons
·   DropDown (D)
Represents a control that allows the user to select a single item from a drop-down list. This properties allows buttons to have a separate dropdown arrow
·   WholeDropDown (D)
Represents a control that allows the user to select a single item from a drop-down list.
·   Check (D)
Creates a dual-state push button that toggles between the pressed and nonpressed states each time the user clicks it.
·   Group (D)
Creates a button that stays pressed until another button in the group is pressed.

EVENTS

·   OnClick
Action to be performed when generic clicking of the control

Remarks

GRIPPERTEXT Property works only for toolbars defined inside splitbox.
"Action" and "WholeDropDown" clauses can't be used simultaneously

EXAMPLE:

see demos in :
\Samples\Basic\ToolBar
\Samples\Basic\ToolBar_1
\Samples\Basic\ToolBar_2
\Samples\Basic\ToolBarEx