This section provides a summary of the differences between OSF/Motif Version 1.1 and Version 1.2, and these fall into two categories: differences you can see and use, and enhancements to the Motif Window Manager.
The following areas have been changed in Version 1.2.
In compliance with the OSF/Motif Style Guide, Version 1.2 supports the drag and drop metaphor for data interchange, with full implementation of the drag and drop specification.
You can use drag and drop to move information between applications, and within an application. For example, to drag text from a text box, you point to the box and hold down button 2. The mouse pointer will change to a drag icon, and you can then move the mouse pointer and release the mouse button to drop the text.
For more informations on drag and drop see the OSF/Motif Programmer's guide and the on-line manual pages.
Note that if you want popup menus to appear when you use button 2 you will need to disable drag and drop.
You can now keep menus on the display for subsequent selections by using tear-off menus. Each tearable menu pane has a tear-off button. Pressing the tear-off button allows the pane to be torn off and dragged. It can then be placed by releasing the mouse drag button.
The Window Manager surrounds the tear-off menu pane with a frame and a title. If focus is shifted to a torn off menu's window pane, it will follow the standard Window Manager policy.
You enable tear-off behavior by setting the
XmNtearOffModel resource to
XmTEAR_OFF_ENABLED. The default is
XmTEAR_OFF_DISABLED.
However, if tear-off menus are not working in your application, you
should check that the tear-off functionality has been enabled in the
resource database. To do this you must ensure that the
XmNtearOffModel resource in the application's resource
converter has been registered. You can do this by using the following
function:
XmRepTypeInstallTearOffModelConverter
Visual indications are provided to indicate whether you can enter input into a component. Although labels and buttons have had this behavior in previous releases, Version 1.2 extends this behavior to the XmList, XmText, XmTextField, XmScrollBar, and XmArrowButton widgets.
As well as several pixels changing in the 3-D beveled look, Version 1.2 color generation routines also include minor changes.
In particular, the new XmScreen object contains resources that allow you to alter the generation of default colors to your requirements.
Also, to produce more contrast on color monitors some of the default values for thresholds have been adjusted.
All items in a list are now surrounded by a location cursor whenever a List widget has the focus and the current keyboard item is not visible.
There are also minor layout differences due to code improvements in the geometry management.
Version 1.2 allows a title widget to be specified in a Frame widget.
A new resource, XmNaudibleWarning, has been added to
specify whether an audible cue should accompany a warning
message. Text widgets will determine the value for this resource from
the value of XmNaudibleWarning.
The traversal arrows
,
,
, and
can now be used to navigate within a menu pane. The
and
arrows wrap between columns, and the
and
arrows post the previous or next menu pane when in the
rightmost and leftmost column of the menu pane, respectively.
In Motif 1.2, pressing
or <osfActivate> (usually bound to the keypad <Enter> key)
no longer activates a button that is outside a menu. For example, it no
longer pops up an option menu or activates a toggle button in a dialog box.
However, pressing the space bar usually performs this function.
If there is a default button associated with an XmBulletinBoard,
pressing
(except in a
multi-line XmText),
, or
<osfActivate> while focus is in the
XmBulletinBoard activates the default button.
The following changes have also been incorporated into the Motif Window Manager (mwm):
.mwmrc file is internationalized
.mwmrc file
XBMLANGPATH is now searched for bitmap files
and <Meta> key
modifiers are treated as different modifiers
The Window Manager also includes the following new or enhanced resources:
feedbackGeometry
frameBorderWidth
iconPlacement
tight for automatic icon
placement with no gaps between icons.
maximumClientSize
vertical or horizontal to limit
the maximize operation to the corresponding direction.
moveOpaque
resizeBorderWidth
usePPosition
on, off, or
non-zero to control whether program-specified positions
are used.
The Window Manager includes the following new and enhanced functions:
There is also one new mwm action:
. This behaves in
a similar way to the f.next_key, except that the
window is always raised regardless of the value of
focusAutoRaise.