24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A set of resources was added to enable control of the color schemes by the<br />

application. The goal of these new resources makes it possible for an application<br />

to:<br />

• Override the color calculation method used by Motif to generate 3D effects.<br />

• Allocate the pixels in the colormap.<br />

Color-intensive applications generally want to control the color schema and color<br />

allocation to optimize their own algorithms and use of the colormap. For example,<br />

on a system with 256 entries in the colormap, an application may want to reserve<br />

all 256 colors for its own usage. There are then no colors left for the Motif toolkit.<br />

With Motif 2.1, the application can plug-in its own allocation function. Then, each<br />

time Motif needs a new color, it calls that function. The application can then loan<br />

to Motif one of the colors it is already using.<br />

A new screen resource allows an application to customize the bitmap that is used<br />

by Motif for the rendering of insensitive visuals. Support is also added for<br />

applications that want to display menus in overlay planes. Menus can now be<br />

displayed in a visual that is different than that of the application.<br />

8.3.4.12 Virtual Bindings<br />

As of Motif 1.2, users can customize the keyboard mapping by defining a keymap<br />

between virtual keys (for example, osfCancel) and real keys (for example, Cancel<br />

or Escape). They then run the xmbind command to bind the real keys to the virtual<br />

keys. However, a single real key can only be assigned to a single virtual key.<br />

In Motif 2.1, each virtual key can be associated with multiple real keys, allowing<br />

users to use, for example, both the Escape key or the Cancel key to cancel an<br />

operation. Of course, errors can occur if a user incorrectly maps the same real<br />

key to multiple virtual keys.<br />

8.3.4.13 Drag and Drop Enhancements<br />

Several enhancements have been made to Drag and Drop. The following<br />

features are useful for sophisticated applications that are advanced in drag and<br />

drop technology.<br />

A function has been added to query if a widget is a dropsite or not. A generic<br />

application-wide dragStartCallback has been added, so an application can be<br />

aware and take action for any drag occurring at any time in the application.<br />

To provide better drag and drop feedback to the user, Motif 2.1 makes it possible<br />

for the drag icon to change in real time to show the effect that a drop would have<br />

if it occurred at the current location of the mouse cursor. The effect depends on<br />

the individual item, or items, that are being dragged.<br />

Another enhancement that has no API, but is fairly visible to end users, is<br />

drag-scroll support. Users of small screens are often faced with the problem of<br />

not being able to drag data from one place and drop it in another because the<br />

target window is currently scrolled out of view. The user has to drop the icon on<br />

the desktop, scroll the window so that the destination is visible, and restart the<br />

drag. Drag scrolling prevents this, allowing the user to move the cursor over the<br />

scroll bar direction control and pause. After a customizable delay, the scrollable<br />

window automatically begins to scroll and makes the destination appear. As soon<br />

as the user moves the cursor, scrolling stops.<br />

Graphical Environment Enhancements 223

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!