The CW_ITTOOLBAR function creates a toolbar base compound widget. The items in the toolbar correspond to the operations or manipulators contained in a specified container object within the OPERATIONS container of the associated iTool. (See iTool Object Hierarchy for a description of the iTool object hierarchy.)
The CW_ITTOOLBAR widget automatically performs the following actions:
resource/bitmaps/new.bmp is used). The value of the DISABLE property determines the initial sensitivity of the button. The value of the NAME property is used for the button tooltip.See iTool Messaging System for a discussion of observers and notifications.
Result = CW_ITTOOLBAR(Parent, UI, Target [, /EXCLUSIVE] [, ROW=integer] [, UNAME=string] [, UVALUE=value] )
This function returns the widget ID of the newly-created toolbar base.
The widget ID of the parent base for the new toolbar.
An object reference of the IDLitUI object associated with the iTool. See User Interface Object for information on creating user interface objects.
A string specifying the identifier of an item of class IDLitContainer that contains the items to be included in the toolbar. Target can either be a full identifier or be relative to the IDLitTool object associated with the user interface object specified by UI.
All items within the Target container must be operations or manipulators registered with the IDLitTool object associated with the user interface object specified by UI.
Set this keyword to create a toolbar with exclusive buttons, where only one button can be selected at a time, and remains selected until another button is selected. The default is to create a pushbutton toolbar, which allows multiple selections.
| Note |
Set this keyword equal to an integer specifying the number of rows used for laying out the toolbar buttons and droplists. The default is 1.
| Tip |
Set this keyword to a string that can be used to identify the widget in your code. You can associate a name with each widget in a specific hierarchy, and then use that name to query the widget hierarchy and get the correct widget ID.
To query the widget hierarchy, use the WIDGET_INFO function with the FIND_BY_UNAME keyword. The UNAME should be unique to the widget hierarchy because the FIND_BY_UNAME keyword returns the ID of the first widget with the specified name.
The "user value" to be assigned to the widget. Each widget can contain a user-specified value of any data type and organization. This value is not used by the widget in any way, but exists entirely for the convenience of the IDL programmer. This keyword allows you to set this value when the widget is first created. If UVALUE is not present, the widget's initial user value is undefined.
The user value for a widget can be accessed and modified at any time by using the GET_UVALUE and SET_UVALUE keywords to the WIDGET_CONTROL procedure.
The widget ID returned by most compound widgets is actually the ID of the compound widget's base widget. This means that many keywords to the WIDGET_CONTROL and WIDGET_INFO routines that affect or return information on base widgets can be used with compound widgets.
See Compound Widgets for a more complete discussion of controlling compound widgets using WIDGET_CONTROL and WIDGET_INFO.
CW_IT* compound widgets do not return widget events. All interaction with the iTool user interface is accomplished via the iTool messaging system and the callback mechanism implemented in the user interface creation routine.
Introduced: 6.1
Creating a Custom iTool Widget Interface, CW_ITMENU, CW_ITPANEL, CW_ITSTATUSBAR, CW_ITWINDOW