Tool Button properties
buttonType
The buttonType property specifies what type of button the part represents. The following choices are available:
XmCHECKBUTTON
Creates a button that represents a boolean value. Selecting the button toggles the set value.
XmPUSHBUTTON
Creates a tool bar button that behaves like a normal push button.
XmRADIOBUTTON
Creates a button that indicates a selected state. A radio button group is a set of tool bar buttons with buttonType set to XmRADIOBUTTON that are laid out contiguously on the tool bar. Selecting a particular radio button toggles the set value. To toggle the value back, the user selects another button in the Radio button group.
Note:
Changing the buttonType has no effect on the appearance of the Tool Bar button. It only changes the runtime behavior.
dragDropSpec (AbtDragDropSpec)
enabled
The enabled property specifies whether or not the part is available for selection. If true, the part's contents are available for selection.
graphicsDescriptor
The graphicsDescriptor property is an icon, bitmap, or image that is used instead of text for the label. The labelType property must be XmPIXMAP or the graphicsDescriptor property is ignored.
helpFile
The helpFile property is the name of the help file associated with the part.
helpKeysId
The helpKeysId property is the ID of the keys help associated with the part. The ID can be a string or an integer value.
The ID must exist in the help file associated with the part.
helpTitle
The helpTitle property is the title of the help window associated with the part.
helpTopicId
The helpTopicId property is the ID of the help topic associated with the part. The ID can be a string or an integer value.
The ID must exist in the help file associated with the part.
labelString
The labelString property is the label of the part in string form.
For example, to dynamically display the string format of a number value, do the following:
a. Define the label with the Number data type.
b. Assign a value to the label.
c. Connect the labelString attribute to this label.
partName
The partName property specifies the name you want to use to describe the part. For nonvisual parts, this text appears under the icon for the part on the free-form surface.
The name of the part can consist of alphanumeric characters, and must be different from those of all other parts on the layout surface.
If you do not specify a part name, VA Smalltalk generates a unique name based on the class name of the part.
set
The set property indicates whether the button is in its selected state (grayed). If this property is set to false, the button is deselected. This property is used only if the buttonType property is set to XmCHECKBUTTON or XmRADIOBUTTON.
toolTipText
The toolTipText property specifies the text that is displayed when the mouse pointer is positioned over the control. This is similar to the hover help capability supplied by other VA Smalltalk parts.
Last modified date: 05/14/2020