This appendix summarizes name changes for the following DECwindows Motif components:
Widget classes
Function names
Resource names
Enumeration literal names
Callback reason names
Compound string names
Fontlist names
Clipboard names
Resource manager names
For complete descriptions of the widget classes, see the OSF/Motif Programmer's Reference.
Table F-0 summarizes the differences between the XUI widget hierarchy and the OSF/Motif widget hierarchy.
XUI Interface | Motif Interface |
DwtAttachedDB | XmForm |
DwtCommandWindow | XmCommand |
DwtCommon | No equivalent in Motif. The resources are in XmPrimitive, XmManager, and XmGadget. |
DwtDialogBox | XmBulletinBoard |
DwtFileSelection | XmFileSelectionBox |
DwtHelp | DXmhelp |
Dwtlabel | XmLabel |
DwtListBox | XmList |
DwtMainWindow | XmMainWindow |
DwtMenu | XmRowColumn |
DwtMessageBox | XmMessageBox |
DwtPullDownMenuEntry | XmCascadeButton |
DwtPushButton | XmPushButton |
DwtScale | XmScale |
DwtScrollBar | XmScrollBar |
DwtScrollWindow | XmScrolledWindow |
DwtSelection | XmSelectionBox |
DwtSeparator | XmSeparator |
DwtSText | XmText |
DwtToggleButton | XmToggleButton |
DwtWindow | XmDrawingArea |
Table F-0 summarizes the differences between the XUI function names and the OSF/Motif function names.
XUI Interface | Motif Interface |
Dwt*Create | XmCreate* [Footnote 1] |
DwtAttachedDBCreate | XmCreateForm |
DwtAttachedDBPopupCreate | XmCreateFormDialog |
DwtCautionBoxCreate | XmCreateWarningDialog, |
XmCreateMessageDialog, | |
XmCreateErrorDialog, | |
or XmCreateQuestionDialog | |
DwtCommandAppend | XmCommandAppendValue |
DwtCommandErrorMessage | XmCommandError |
DwtCommandSet | XmCommandSetValue |
DwtCommandWindowCreate | XmCreateCommand |
DwtDialogBoxCreate | XmCreateBulletinBoard |
DwtDialogBoxPopupCreate | XmCreateBulletinBoardDialog |
DwtFileSelectionCreate | XmCreateFileSelectionDialog |
DwtLabelCreate | XmCreateLabel |
DwtLabelGadgetCreate | XmCreateLabelGadget |
DwtListBoxCreate | XmCreateList |
DwtMainWindowCreate | XmCreateMainWindow |
DwtMenuBarCreate | XmCreateMenuBar |
DwtMenuCreate | XmCreateRowColumn |
DwtMenuPopupCreate | XmCreatePopupMenu |
DwtMenuPulldownCreate | XmCreatePulldownMenu |
DwtMessageBoxCreate | XmCreateInformationDialog [Footnote 2] |
DwtOptionMenuCreate | XmCreateOptionMenu |
DwtPullDownMenuEntryCreate | XmCreateCascadeButton |
DwtPullDownMenuEntryHilite | XmCascadeButtonHighlight |
DwtPullEntryGadgetCreate | XmCreateCascadeButtonGadget |
DwtPushButtonCreate | XmCreatePushButton |
DwtPushButtonGadgetCreate | XmCreatePushButtonGadget |
DwtRadioBoxCreate | XmCreateRadioBox |
DwtScaleCreate | XmCreateScale |
DwtScaleGetSlider | XmScaleGetValue |
DwtScaleSetSlider | XmScaleSetValue |
DwtScrollBarCreate | XmCreateScrollBar |
DwtScrollBarGetSlider | XmScrollBarGetValues |
DwtScrollBarSetSlider | XmScrollBarSetValues |
DwtScrollWindowCreate | XmCreateScrolledWindow |
DwtSelectionCreate | XmCreateSelectionBox |
DwtSeparatorCreate | XmCreateSeparator |
DwtSeparatorGadgetCreate | XmCreateSeparatorGadget |
DwtSTextCreate | XmCreateText |
DwtToggleButtonCreate | XmCreateToggleButton |
DwtToggleButtonGadgetCreate | XmCreateToggleButtonGadget |
DwtWindowCreate | XmCreateDrawingArea |
DwtWorkBoxCreate | XmCreateWorkingDialog [Footnote 2] |
Table F-0 summarizes the differences between the XUI resource names and the OSF/Motif resource names. Some XUI resource names have multiple Motif resource names. To help you determine which Motif resource name applies to your widget, the widget class is listed in parentheses after the Motif name.
XUI Interface | Motif Interface |
DwtN* | XmN* [Footnote 3] |
DwtNactivateCallback | XmNokCallback (XmSelectionBox) |
DwtNadb* | XmN* [Footnote 3] |
DwtNapplyLabel | XmNapplyLabelString |
DwtNautoShowInsertPoint | XmNautoShowCursorPosition |
DwtNbuttonAccelerator | XmNaccelerator |
DwtNcancelLabel | XmNcancelLabelString |
DwtNchildOverlap | XmNallowOverlap |
DwtNcols | XmNcolumns |
DwtNconformToText | XmNrecomputeSize |
DwtNdefaultHorizontalOffset | XmNhorizontalSpacing |
DwtNdefaultPushbutton | XmNdefaultButtonType |
DwtNdefaultVerticalOffset | XmNverticalSpacing |
DwtNdirectionRtoL | XmNprocessingDirection |
(XmScale, XmScrollBar) | |
DwtNdirectionRtoL | XmNstringDirection (XmLabel, |
XmBulletinBoard, XmList) | |
DwtNextendCallback | XmNextendedSelectionCallback |
DwtNfilterLabel | XmNfilterLabelString |
DwtNfont | XmNfontList (XmLabel, XmList, |
XmScale, XmText) | |
DwtNfont | XmN*fontList (XmBulletinBoard) |
DwtNhistory | XmNhistoryItems |
DwtNhorizontal | XmNscrollBarDisplayPolicy |
DwtNhotSpotPixmap | XmNcascadePixmap |
DwtNiconPixmap | XmNsymbolPixmap |
DwtNinc | XmNincrement |
DwtNindicator | XmNindicatorOn |
DwtNinsensitivePixmap | XmNlabelInsensitivePixmap |
DwtNinsensitivePixmapOff | XmNlabelInsensitivePixmap |
DwtNinsensitivePixmapOn | XmNselectInsensitivePixmap |
DwtNinsertionPointVisible | XmNcursorPositionVisible |
DwtNinsertionPosition | XmNcursorPosition |
DwtNitems | XmNlistItems |
DwtNitemsCount | XmNitemCount (XmList) |
DwtNitemsCount | XmNlistItemCount (XmSelectionBox) |
DwtNlabel | XmNlabelString (XmLabel, XmRowColumn) |
DwtNlabel | XmNlistLabelString (XmSelectionBox) |
DwtNlabel | XmNmessageString (XmMessageBox) |
DwtNlabelAlignment | XmNmessageAlignment |
DwtNlines | XmNhistoryItemCount |
DwtNlostFocusCallback | XmNlosingFocusCallback |
DwtNmaxValue | XmNmaximum |
DwtNmenuAlignment | XmNisAligned |
DwtNmenuEntryClass | XmNentryClass |
DwtNmenuExtendLastRow | XmNadjustLast |
DwtNmenuIsHomogeneous | XmNisHomogeneous |
DwtNmenuNumColumns | XmNnumColumns |
DwtNmenuPacking | XmNpacking |
DwtNmenuRadio | XmNradioBehavior |
DwtNmenuType | XmNrowColumnType |
DwtNmergeTextTranslations | XmNtextTranslations |
DwtNminValue | XmNminimum |
DwtNokLabel | XmNokLabelString |
DwtNpageDecCallback | XmNpageDecrementCallback |
DwtNpageInc | XmNpageIncrement |
DwtNpageIncCallback | XmNpageIncrementCallback |
DwtNpixmap | XmNlabelPixmap |
DwtNpixmapOff | XmNlabelPixmap |
DwtNpixmapOn | XmNselectPixmap |
DwtNprompt | XmNpromptString |
DwtNpullingCallback | XmNcascadingCallback |
DwtNresize | XmNlistSizePolicy (XmList) |
DwtNresize | XmNresizePolicy (XmBulletinBoard) |
DwtNselectedItemsCount | XmNselectedItemCount |
DwtNselectionLabel | XmNselectionLabelString |
DwtNshadow | XmNshadowThickness |
DwtNshape | XmNindicatorType |
DwtNshown | XmNsliderSize |
DwtNsingleCallback | XmNsingleSelectionCallback |
DwtNsingleConfirmCallback | XmNdefaultActionCallback |
DwtNsingleSelection | XmNsingleSelectionPolicy |
DwtNspacing | XmNlistSpacing |
DwtNstyle | XmNdialogStyle |
DwtNtextCols | XmNtextColumns |
DwtNtitle | XmNdialogTitle (XmBulletinBoard) |
DwtNtitle | XmNtitleString (XmScale) |
DwtNunitDecCallback | XmNdecrementCallback |
DwtNunitIncCallback | XmNincrementCallback |
DwtNvalue | XmNcommand (XmCommand) |
DwtNvalue | XmNset (XmToggleButton) |
DwtNvalue | XmNtextString (XmSelectionBox) |
DwtNvalueChangedCallback | XmNcommandChangedCallback (XmCommand) |
DwtNvisibleItemsCount | XmNvisibleItemCount (XmList) |
DwtNvisibleItemsCount | XmNlistVisibleItemCount (XmSelectionBox) |
DwtNyesCallback | XmNokCallback |
DwtNyesLabel | XmNokLabelString |
Table F-0 summarizes the differences between the XUI enumeration literal names and the OSF/Motif enumeration literal names. Some XUI enumeration literal names have multiple Motif enumeration literal names. To help you determine which Motif enumeration literal name applies to your widget, the widget class is listed in parentheses after the Motif name.
XUI Interface | Motif Interface |
Dwt AaaaAaaa | Xm
AAAA_AAAA
Most of the name changes follow this form. The table lists those enumeration literal name changes that do not follow this form. |
DwtAttachAdb | XmATTACH_FORM |
DwtAttachOppAdb | XmATTACH_OPPOSITE_FORM |
DwtAttachOppWidget | XmATTACH_OPPOSITE_WIDGET |
DwtCancelButton | XmDIALOG_CANCEL_BUTTON |
DwtCString | XmSTRING |
DwtMenuPackingColumn | XmPACK_COLUMN |
DwtMenuPackingNone | XmPACK_NONE |
DwtMenuPackingTight | XmPACK_TIGHT |
DwtMenuWorkArea | XmWORK_AREA |
DwtModal | XmDIALOG_APPLICATION_MODAL |
DwtModal | XmDIALOG_FULL_APPLICATION_MODAL |
DwtModal | XmDIALOG_SYSTEM_MODAL |
DwtModeless | XmDIALOG_MODELESS |
DwtOrientationHorizontal | XmHORIZONTAL |
DwtOrientationVertical | XmVERTICAL |
DwtOval | XmONE_OF_MANY |
DwtRectangular | XmN_OR_MANY |
DwtResizeFixed | XmRESIZE_NONE (XmBulletinBoard) |
DwtResizeFixed | XmCONSTANT (XmList) |
DwtResizeGrowOnly | XmRESIZE_GROW (XmBulletinBoard) |
DwtResizeGrowOnly | XmVARIABLE (XmList) |
DwtResizeShrinkWrap | XmRESIZE_ANY (XmBulletinBoard) |
DwtResizeShrinkWrap | XmVARIABLE (XmList) |
DwtWorkArea | XmDIALOG_WORK_AREA |
DwtYesButton | XmDIALOG_OK_BUTTON |
Table F-0 summarizes the differences between the XUI callback reason names and the OSF/Motif callback reason names. Some XUI callback reason names have multiple Motif callback reason names. To help you determine which Motif callback reason name applies to your widget, the widget class is listed in parentheses after the Motif name.
XUI Interface | Motif Interface |
DwtCR AaaaAaaa | XmCR_
AAAA_AAAA
Most of the name changes follow this form. The table lists those callback reason name changes that do not follow this form. |
DwtCRActivate | XmCR_OK (XmSelectionBox) |
DwtCRActivate | XmCR_CASCADING (XmCascadeButton) |
DwtCRExtend | XmCR_EXTENDED_SELECTION |
DwtCRHelpRequested | XmCR_HELP |
DwtCRLostFocus | XmCR_LOSING_FOCUS |
DwtCRPageDec | XmCR_PAGE_DECREMENT |
DwtCRPageInc | XmCR_PAGE_INCREMENT |
DwtCRSingle | XmCR_SINGLE_SELECT |
DwtCRSingleConfirm | XmCR_DEFAULT_ACTION |
DwtCRUnitDec | XmCR_DECREMENT |
DwtCRUnitInc | XmCR_INCREMENT |
DwtCRValueChanged | XmCR_COMMAND_CHANGED (XmCommand) |
DwtCRYes | XmCR_OK |
Table F-0 summarizes the differences between the XUI compound string names and the OSF/Motif compound string names.
Although the compound string names are changed, some functions change the order and number of arguments. See the OSF/Motif Programmer's Reference (available from Prentice Hall); to verify the arguments.
XUI Interface | Motif Interface |
DwtCompString | XmString |
DwtCSbytecmp | XmStringByteCompare |
DwtCSempty | XmStringEmpty |
DwtCSString | XmStringSegmentCreate [Footnote 4] |
DwtCStrcat | XmStringConcat |
DwtCStrcpy | XmStringCopy |
DwtCStrlen | XmStringLength |
DwtCStrncat | XmStringNConcat |
DwtCStrncpy | XmStringNCopy |
DwtDisplayCSMessage | No equivalent in Motif. |
DwtDisplayVMSMessage | No equivalent in Motif. |
DwtGetNextSegment | XmStringGetNextSegment |
DwtInitGetSegment | XmStringInitContext |
DwtLatin1String | XmStringCreateSimple [Footnote 4] |
DwtString | XmStringSegmentCreate [Footnote 4] |
Table F-0 summarizes the differences between the XUI fontlist names and the OSF/Motif fontlist names.
XUI Interface | Motif Interface |
DwtAddFontList | XmFontListAdd |
DwtCreateFontList | XmFontListCreate |
Table F-0 summarizes the differences between the XUI clipboard names and the OSF/Motif clipboard names.
XUI Interface | Motif Interface |
DwtBeginCopyToClipboard | XmClipboardStartCopy |
DwtCancelCopyFormat | XmClipboardWithdrawFormat |
DwtCancelCopyToClipboard | XmClipboardCancelCopy |
DwtCopyFromClipboard | XmClipboardRetrieve |
DwtCopyToClipboard | XmClipboardCopy |
DwtEndCopyFromClipboard | XmClipboardEndRetrieve |
DwtEndCopyToClipboard | XmClipboardEndCopy |
DwtInquireNextPasteCount | XmClipboardInquireCount |
DwtInquireNextPasteFormat | XmClipboardInquireFormat |
DwtInquireNextPasteLength | XmClipboardInquireLength |
DwtListPendingItems | XmClipboardInquirePendingItems |
DwtReCopyToClipboard | XmClipboardCopyByName |
DwtStartCopyFromClipboard | XmClipboardStartRetrieve |
DwtStartCopyToClipboard | XmClipboardStartCopy |
DwtUndoCopyToClipboard | XmClipboardUndoCopy |
Table F-0 summarizes the differences between the XUI resource manager names and the OSF/Motif resource manager names.
XUI Interface | Motif Interface |
DwtCloseHierarchy | MrmCloseHierarchy |
DwtDrmFreeResourceContext | No equivalent in Motif. Use MrmFetchLiteral, MrmFetchIconLiteral, or MrmFetchColorLiteral. |
DwtDrmGetResourceContext | No equivalent in Motif. Use MrmFetchLiteral, MrmFetchIconLiteral, or MrmFetchColorLiteral. |
DwtDrmHGetIndexedLiteral | No equivalent in Motif. Use MrmFetchLiteral, MrmFetchIconLiteral, or MrmFetchColorLiteral. |
DwtDrmRCBuffer | No equivalent in Motif. Use MrmFetchLiteral, MrmFetchIconLiteral, or MrmFetchColorLiteral. |
DwtDrmRCSetType | No equivalent in Motif. Use MrmFetchLiteral, MrmFetchIconLiteral, or MrmFetchColorLiteral. |
DwtDrmRCSize | No equivalent in Motif. Use MrmFetchLiteral, MrmFetchIconLiteral, or MrmFetchColorLiteral. |
DwtDrmRCType | No equivalent in Motif. Use MrmFetchLiteral, MrmFetchIconLiteral, or MrmFetchColorLiteral. |
DwtFetchColorLiteral | MrmFetchColorLiteral |
DwtFetchIconLiteral | MrmFetchIconLiteral |
DwtFetchInterfaceModule | MrmFetchInterfaceModule |
DwtFetchLiteral | MrmFetchLiteral |
DwtFetchSetValues | MrmFetchSetValues |
DwtFetchWidget | MrmFetchWidget |
DwtFetchWidgetOverride | MrmFetchWidgetOverride |
DwtInitializeDRM | MrmInitialize |
DwtOpenHierarchy | MrmOpenHierarchy |
DwtRegisterClass | MrmRegisterClass |
DwtRegisterDRMNames | MrmRegisterNames |