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.

8.3.4.14 Scrolled Window and Scroll Bar Enhancements<br />

The Scrollbar widget has been extended to support a look and feel like<br />

OpenStep, where both up and down controls are close together at one end of the<br />

scroll bar, as opposed to one control at each end. A new resource was added to<br />

give applications more control over the appearance of the slider.<br />

It is practically impossible with Motif 1.2 for an application to implement a scrolled<br />

window that has a fixed title or a status bar inside the scrolled window area. Motif<br />

2.1 makes it possible to have one or more arbitrary controls be displayed as<br />

non-scrollable in any direction.<br />

Using this feature, users can simply implement a spreadsheet application with a<br />

column title that cannot be scrolled out vertically, a rows title that cannot be<br />

scrolled out horizontally, and a RowColumn widget for the cells. MainWindow, a<br />

subclass of ScrolledWindow, inherits this feature too.<br />

8.3.4.15 Drawing Area<br />

The drawing area is now traversable with the keyboard, making it possible for<br />

users to traverse to a drawing area and get its associated functions (for example,<br />

pop-up menus).<br />

8.3.4.16 Performance Enhancements<br />

A number of performance enhancements have been made and are described<br />

below.<br />

XmString Performance<br />

The memory used by an XmString that uses a single font and is smaller than 256<br />

bytes (256 characters in Latin-based language environments) is less than it used<br />

to be. Note that this kind of string represents the majority of strings displayed in a<br />

typical user interface, for example, menu items, list items, and labels. The<br />

memory size of every XmString has also been reduced by four bytes (from Motif<br />

1.2). Every string that consists of less than 256 characters uses a single<br />

encoding, single color, and single font.<br />

Copying XmString is now managed by reference counting in 2.1, which makes<br />

XmString copy much faster and uses no memory. Since Motif does a lot of<br />

XmString copies internally, this should reduce the memory size used by many<br />

applications that do not release the memory of an XmString after they have<br />

passed it to a widget.<br />

List Performance<br />

The startup time for the List widget has been decreased compared to Motif 1.2.<br />

This is particularly noticeable for applications that handle large lists of several<br />

hundred items. See Section 8.3.4.10, “List Enhancements” on page 222.<br />

X-Related Performance<br />

In general, the amount of resources allocated in the X server, clients, and the<br />

number of round trips between client and server has been decreased.<br />

Client-side memory has been decreased by using bitmaps instead of pixmaps<br />

whenever possible. In Motif 1.2, when a widget uses a background pixmap, a<br />

pixmap is allocated using the available depth of the screen. In Motif 2.1, a bitmap<br />

is used if only two colors are required.<br />

224 <strong>AIX</strong> <strong>Version</strong> <strong>4.3</strong> <strong>Differences</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!