Visual Parts Reference : Parts Reference : Message Prompter : Message Prompter properties
Message Prompter properties
The Message Prompter part has the following properties:
buttonType
The buttonType property specifies which buttons are to be displayed in the prompter. Possible values include the following:
XmOK
Displays the OK button only.
XmOKCANCEL
Displays the OK and CANCEL buttons. This is the default.
XmRETRYCANCEL
Displays the RETRY and CANCEL buttons.
XmABORTRETRYIGNORE
Displays the ABORT, RETRY, and IGNORE buttons.
XmYESNO
Displays the YES and NO buttons.
XmYESNOCANCEL
Displays the YES, NO, and CANCEL buttons.
The value returned is determined by the button pressed by the user:
If the user pressed OK, YES, or RETRY, true is returned.
If the user pressed NO or ABORT, false is returned.
If the user pressed CANCEL or IGNORE, nil is returned.
defaultButtonType
The defaultButtonType property specifies which push button is the default push button in the prompter. The following are valid types of default push buttons:
XmDefaultButton1
XmDefaultButton2
XmDefaultButton3
iconType
The iconType property specifies the type of icon you want displayed in the prompter. Valid values include the following:
XmNOICON
XmICONINFO (default)
XmICONWARNING
XmICONERROR
XmICONQUESTION
messageString
The messageString property specifies the string of characters you want to use as the text of your message.
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.
prompterStyle
The prompterStyle property specifies the type of dialog you want the prompter to display. Valid values include:
XmPRIMARYAPPLICATIONMODAL
The user must respond to the prompter before interacting with the parent window. The user can still interact with other windows.
XmFULLAPPLICATIONMODAL
The user must respond to the prompter before interacting with any window in the application. The user can still interact with other windows.
XmSYSTEMMODAL
The user cannot interact with the windows of any application until responding to the prompter.
title
The title property specifies the label displayed for the part. For example, the text for a window displays in the title bar, the text for a scale appears next to the scale, the text for an HTML page appears in the title bar of the Web browser, and the text for a report title appears in the report header.
Last modified date: 01/29/2015