Common Desktop Environment: Desktop KornShell User's Guide

Built-in Motif Commands

XmAddWMProtocolCallback widgetHandle protocolAtom ksh-command

where protocolAtom is typically obtained using the XmInternAtom command.

XmAddWMProtocols widgetHandle protocolAtom [protocolAtom ...]

where protocolAtom is typically obtained using the XmInternAtom command.

XmCommandAppendValue widgetHandle string

XmCommandError widgetHandle errorString

XmCommandGetChild variable widgetHandle childType

where childType is one of the strings DIALOG_COMMAND_TEXT, DIALOG_PROMPT_LABEL, DIALOG_HISTORY_LIST, or DIALOG_WORK_AREA.

XmCommandSetValue widgetHandle commandString

XmCreateArrowButton variable parentWidgetHandle name [resource:value...]

XmCreateArrowButtonGadget variable parentWidgetHandle name [resource:value ...]

XmCreateBulletinBoard variable parentWidgetHandle name [resource:value ...]

XmCreateBulletinBoardDialog variable parentWidgetHandle name [resource:value ...]

XmCreateCascadeButton variable parentWidgetHandle name [resource:value ...]

XmCreateCascadeButtonGadget variable parentWidgetHandle name [resource:value ...]

XmCreateCommand variable parentWidgetHandle name [resource:value ...]

XmCreateDialogShell variable parentWidgetHandle name [resource:value ...]

XmCreateDrawingArea variableparent WidgetHandle name [resource:value ...]

XmCreateDrawnButton variable parentWidgetHandle name [resource:value ...]

XmCreateErrorDialog variable parentWidgetHandle name [resource:value ...]

XmCreateFileSelectionBox variable parentWidgetHandle name [resource:value ...]

XmCreateFileSelectionDialog variable parentWidgetHandle name [resource:value ...]

>XmCreateForm variable parentWidgetHandle name [resource:value ...]

XmCreateFormDialog variable parentWidgetHandle name [resource:value ...]

XmCreateFrame variable parentWidgetHandle name [resource:value ...]

XmCreateInformationDialog variable parentWidgetHandle name [resource:value ...]

XmCreateLabel variable parentWidgetHandle name [resource:value ...]

XmCreateLabelGadget variable parentWidgetHandle name [resource:value ...]

XmCreateList variable parentWidgetHandle name [resource:value ...]

XmCreateMainWindow variable parentWidgetHandle name [resource:value ...]

XmCreateMenuBar variable parentWidgetHandle name [resource:value ...]

XmCreateMenuShell variable parentWidgetHandle name [resource:value ...]

XmCreateMessageBox variable parentWidgetHandle name [resource:value ...]

XmCreateMessageDialog variable parentWidgetHandle name [resource:value ...]

XmCreateOptionMenu variable parentWidgetHandle name [resource:value ...]

XmCreatePanedWindow variable parentWidgetHandle name [resource:value ...]

XmCreatePopupMenu variable parentWidgetHandle name [resource:value ...]

XmCreatePromptDialog variable parentWidgetHandle name [resource:value ...]

XmCreatePulldownMenu variable parentWidgetHandle name [resource:value ...]

XmCreatePushButton variable parentWidgetHandle name [resource:value ...]

XmCreatePushButtonGadget variable parentWidgetHandle name [resource:value ...]

XmCreateQuestionDialog variable parentWidgetHandle name [resource:value ...]

XmCreateRadioBox variable parentWidgetHandle name [resource:value ...]

XmCreateRowColumn variable parentWidgetHandle name [resource:value ...]

XmCreateScale variable parentWidgetHandle name [resource:value ...]

XmCreateScrollBar variable parentWidgetHandle name [resource:value ...]

XmCreateScrolledList variable parentWidgetHandle name [resource:value ...]

XmCreateScrolledText variable parentWidgetHandle name [resource:value ...]

XmCreateScrolledWindow variable parentWidgetHandle name [resource:value ...]

XmCreateSelectionBox variable parentWidgetHandle name [resource:value ...]

XmCreateSelectionDialog variable parentWidgetHandle name [resource:value ...]

XmCreateSeparator variable parentWidgetHandle name [resource:value ...]

XmCreateSeparatorGadget variable parentWidgetHandle name [resource:value ...]

XmCreateText variable parentWidgetHandle name [resource:value ...]

XmCreateTextField variable parentWidgetHandle name [resource:value...]

XmCreateToggleButton variable parentWidgetHandle name [resource:value ...]

XmCreateToggleButtonGadget variable parentWidgetHandle name [resource:value ...]

XmCreateWarningDialog variable parentWidgetHandle name [resource:value ...]

XmCreateWorkArea variable parentWidgetHandle name [resource:value ...]

XmCreateWorkingDialog variable parentWidgetHandle name [resource:value ...]

XmFileSelectionDoSearch widgetHandle directoryMask

XmFileSelectionBoxGetChild variable widgetHandle childType

where childType is one of the strings DIALOG_APPLY_BUTTON, DIALOG_CANCEL_BUTTON, DIALOG_DEFAULT_BUTTON, DIALOG_DIR_LIST, DIALOG_DIR_LIST_LABEL, DIALOG_FILTER_LABEL, DIALOG_FILTER_TEXT, DIALOG_HELP_BUTTON, DIALOG_LIST, DIALOG_LIST_LABEL, DIALOG_OK_BUTTON, DIALOG_SEPARATOR, DIALOG_SELECTION_LABEL, DIALOG_TEXT, or DIALOG_WORK_AREA.

XmGetAtomName variable display atom

XmGetColors widgetHandle background variable var2 var3 var4

The XmGetColors command differs from the C procedure in that it takes a widgetHandle instead of a screen pointer and a colormap.

XmGetFocusWidget variable widgetHandle

XmGetPostedFromWidget variable widgetHandle

XmGetTabGroup variable widgetHandle

XmGetTearOffControl variable widgetHandle

XmGetVisibility variable widgetHandle

XmInternAtom variable display atomString onlyIfExistsFlag

where onlyIfExistsFlag can be set to either true or false.

XmIsTraversable widgetHandle

Returns a value which can be used in a conditional statement.

XmListAddItem widgetHandle position itemString

The order of the parameters for the XmListAddItem command is not identical to its corresponding C programming counterpart.

XmListAddItems widgetHandle position itemString [itemString ...]

The order of the parameters for the XmListAddItems command is not identical to its corresponding C programming counterpart.

XmListAddItemsUnselected widgetHandle position itemString [itemString ...]

The order of the parameters for the XmListAddItemsUnselected command is not identical to its corresponding C programming counterpart.

XmListAddItemUnselected widgetHandle position itemString

The ordering of the parameters to the XmListAddItemUnselected command are not identical to its corresponding C programming counterpart.

XmListDeleteAllItems widgetHandle

XmListDeleteItem widgetHandle itemString

XmListDeleteItems widgetHandle itemString [itemString ...]

XmListDeleteItemsPos widgetHandle itemCount position

XmListDeletePos widgetHandle position

XmListDeletePositions widgetHandle position [position ...]

XmListDeselectAllItems widgetHandle

XmListDeselectItem widgetHandle itemString

XmListDeselectPos widgetHandle position

XmListGetSelectedPos variable widgetHandle

Returns a comma-separated list of indices in variable. Returns a value which can be used in a conditional statement.

XmListGetKbdItemPos variable widgetHandle

XmListGetMatchPos variable widgetHandle itemString

Returns a comma-separated list of indices in variable. Returns a value which can be used in a conditional statement.

XmListItemExists widgetHandle itemString

Returns a value which can be used in a conditional statement.

XmListItemPos variable widgetHandle itemString

XmListPosSelected widgetHandle position

Returns a value which can be used in a conditional statement.

XmListPosToBounds widgetHandle position variable var2 var3 vari4

Returns a value which can be used in a conditional statement.

XmListReplaceItemsPos widgetHandle position itemString [itemString ...]

The order of the parameters for the XmListReplaceItemsPos command is not identical to its corresponding C programming counterpart.

XmListReplaceItemsPosUnselected widgetHandle position itemString [itemString ...]

The order of the parameters for the XmListReplaceItemsPosUnselected command is not identical to its corresponding C programming counterpart.

XmListSelectItem widgetHandle itemString notifyFlag

where notifyFlag can be set to either true or false.

XmListSelectPos widgetHandle position notifyFlag

where notifyFlagcan be set to either trueor false.

XmListSetAddMode widgetHandle state

where state can be set to either true or false.

XmListSetBottomItem widgetHandle itemString

XmListSetBottomPos widgetHandle position

XmListSetHorizPos widgetHandle position

XmListSetItem widgetHandle itemString

XmListSetKbdItemPos widgetHandle position

Returns a value which can be used in a conditional statement.

XmListSetPos widgetHandle position

XmListUpdateSelectedList widgetHandle

XmMainWindowSep1 variable widgetHandle

XmMainWindowSep2 variable widgetHandle

XmMainWindowSep3 variable widgetHandle

XmMainWindowSetAreas widgetHandle menuWidgetHandle commandWidgetHandle horizontalScrollbarWidgetHandle verticalScrollbarWidgetHandle workRegionWidgetHandle

XmMenuPosition widgetHandle eventHandle

where eventHandle refers to an X event, which has typically been obtained by accessing the CB_CALL_DATA.EVENT, EH_EVENT or TRANSLATION_EVENT environment variables.

XmMessageBoxGetChild variable widgetHandle childType

where childTypeis one of the strings DIALOG_CANCEL_BUTTON, DIALOG_DEFAULT_BUTTON, DIALOG_HELP_BUTTON, DIALOG_MESSAGE_LABEL, DIALOG_OK_BUTTON, DIALOG_SEPARATOR, or DIALOG_SYMBOL_LABEL.

XmOptionButtonGadget variable widgetHandle

XmOptionLabelGadget variable widgetHandle

XmProcessTraversal widgetHandle direction

where direction is one of the strings TRAVERSE_CURRENT, TRAVERSE_DOWN, TRAVERSE_HOME, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_NEXT_TAB_GROUP, TRAVERSE_PREV, TRAVERSE_PREV_TAB_GROUP, TRAVERSE_RIGHT, or TRAVERSE_UP.

Returns a value which can be used in a conditional statement.

XmRemoveWMProtocolCallback widgetHandle protocolAtom ksh-command

where protocolAtom is typically obtained using the XmInternAtom command.

As is true with traditional Window Manager callbacks, when a callback is removed, the same kshell command string must be specified, as was specified when the callback was originally registered.

XmRemoveWMProtocols widgetHandle protocolAtom [protocolAtom ...]

where protocolAtom is typically obtained using the XmInternAtom command.

XmScaleGetValue widgetHandle variable

XmScaleSetValue widgetHandle value

XmScrollBarGetValues widgetHandle variable var2 var3 var4

XmScrollBarSetValues widgetHandle value sliderSize increment pageIncrement notifyFlag

where notifyFlag can be set to either true or false.

XmScrollVisible widgetHandle widgetHandle leftRightMargin topBottomMargin

XmSelectionBoxGetChild variable widgetHandle childType

where childType is one of the strings DIALOG_CANCEL_BUTTON, DIALOG_DEFAULT_BUTTON, DIALOG_HELP_BUTTON, DIALOG_APPLY_BUTTON, DIALOG_LIST, DIALOG_LIST_LABEL, DIALOG_OK_BUTTON, DIALOG_SELECTION_LABEL, DIALOG_SEPARATOR, DIALOG_TEXT, or DIALOG_WORK_AREA.

XmTextClearSelection widgetHandle time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

XmTextCopy widgetHandle time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

Returns a value which can be used in a conditional statement.

XmTextCut widgetHandle time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

Returns a value which can be used in a conditional statement.

XmTextDisableRedisplay widgetHandle

XmTextEnableDisplay widgetHandle

XmTextFindString widgetHandle startPosition string direction variable

where direction is one of the strings TEXT_FORWARD or TEXT_BACKWARD.

Returns a value which can be used in a conditional statement.

XmTextGetBaseline variable widgetHandle

XmTextGetEditable widgetHandle

Returns a value which can be used in a conditional statement.

XmTextGetInsertionPosition variable widgetHandle

XmTextGetLastPosition variable widgetHandle

XmTextGetMaxLength variable widgetHandle

XmTextGetSelection variable widgetHandle

XmTextGetSelectionPosition widgetHandle variable var2

Returns a value which can be used in a conditional statement.

XmTextGetString variable widgetHandle

XmTextGetTopCharacter variable widgetHandle

XmTextInsert widgetHandle position string

XmTextPaste widgetHandle

Returns a value which can be used in a conditional statement.

XmTextPosToXY widgetHandle position variable var2

Returns a value which can be used in a conditional statement.

XmTextRemove widgetHandle

Returns a value which can be used in a conditional statement.

XmTextReplace widgetHandle fromPosition toPosition string

XmTextScroll widgetHandle lines

XmTextSetAddMode widgetHandle state

where state can be set to either true or false.

XmTextSetEditable widgetHandle editableFlag

where editableFlag can be set to either true or false.

XmTextSetHighlight widgetHandle leftPosition rightPosition mode

where mode is one of the strings HIGHLIGHT_NORMAL, HIGHLIGHT_SELECTED or HIGHLIGHT_SECONDARY_SELECTED.

XmTextSetInsertionPosition widgetHandle position

XmTextSetMaxLength widgetHandle maxLength

XmTextSetSelection widgetHandle firstPosition lastPosition time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

XmTextSetString widgetHandle string

XmTextSetTopCharacter widgetHandle topCharacterPosition

XmTextShowPosition widgetHandle position

XmTextXYToPos variable widgetHandle x y

XmTextFieldClearSelection widgetHandle time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

XmTextFieldGetBaseline variable widgetHandle

XmTextFieldGetEditable widgetHandle

Returns a value which can be used in a conditional statement.

XmTextFieldGetInsertionPosition variable widgetHandle

XmTextFieldGetLastPosition variable widgetHandle

XmTextFieldGetMaxLength variable widgetHandle

XmTextFieldGetSelection variable widgetHandle

XmTextFieldGetSelectionPosition widgetHandle variable var2

Returns a value which can be used in a conditional statement.

XmTextFieldGetString variable widgetHandle

XmTextFieldInsert widgetHandle position string

XmTextFieldPosToXY widgetHandle position variable var2

Returns a value which can be used in a conditional statement.

XmTextFieldRemove widgetHandle

Returns a value which can be used in a conditional statement.

XmTextFieldReplace widgetHandle fromPosition toPosition string

XmTextFieldSetEditable widgetHandle editableFlag

where editableFlag can be set to either true or false.

XmTextFieldSetHighlight widgetHandle leftPosition rightPosition mode

where mode is one of the strings HIGHLIGHT_NORMAL, HIGHLIGHT_SELECTED, or HIGHLIGHT_SECONDARY_SELECTED.

XmTextFieldSetInsertionPosition widgetHandle position

XmTextFieldSetMaxLength widgetHandle maxLength

XmTextFieldSetSelection widgetHandle firstPosition lastPosition time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

XmTextFieldSetString widgetHandle string

XmTextFieldShowPosition widgetHandle position

XmTextFieldXYToPos variable widgetHandle x y

XmTextFieldCopy widgetHandle time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

Returns a value which can be used in a conditional statement.

XmTextFieldCut widgetHandle time

where time is typically either obtained from within an X Event or is queried by a call to the XtLastTimestampProcessed command.

Returns a value which can be used in a conditional statement.

XmTextFieldPaste widgetHandle

Returns a value which can be used in a conditional statement.

XmTextFieldSetAddMode widgetHandle state

where state can be set to either true or false.

XmToggleButtonGadgetGetState widgetHandle

Returns a value which can be used in a conditional statement.

XmToggleButtonGadgetSetState widgetHandle state notifyFlag

where state can be set to either true or false, and where notifyFlag can be set to either true or false.

XmToggleButtonGetState widgetHandle

Returns a value which can be used in a conditional statement.

XmToggleButtonSetState widgetHandle state notifyFlag

where state can be set to either true or false, and where notifyFlag can be set to either true or false.

XmUpdateDisplay widgetHandle