FutureBasic Logo

<<    Index    >> FutureBasic

ToolbarItem   statement



Syntax
button tag, identifier, label, image, allowed, default, toolbarTag

Description
The toolbaritem statement adds a new toolbaritem to the toolbar in the current output window. Toolbaritems can only be placed in an existing toolbar and are added from left to right.

Parameters
Parameter
Description
tag A number (1 through 1000000) that you assign when you create the toolbaritem. The number you assign must be different from the tag value of all other existing items in a toolbar.
identifier The kind of toolbaritem (i.e. separator, space, font, print, custom, ...).
label Text to identify the item when the toolbar is displaying text descriptions.
image This parameter can be the name of (or path to) an image resource, or an ImageRef (NSIimage).
allowed A boolean value which controls whether the toolbaritem is shown in the "allowed" set.
default A boolean value which controls whether the toolbaritem is shown in the "default" set.
toolbarTag The tag value of a previously created toolbar. If this parameter is omitted, the item will be added to the most recently created toolbar.
 
Dialog events
_toolbarItemClick
_toolbarItemValidate
 

See also
toolbar
 
Apple documentation
NSToolbarItem