Layout Views

The GUI Frameworks include a set of layout views which you can use to automate the layout of various child views. The basic concept is simple. Views can detect when their own allocated area has changed (via HandleAllocatedAreaChanged) and can iterate through their child views (using a TViewChildIterator) and views can be transparent. Therefore it is easy to write a special kind of transparent view that sizes and positions its children based on its own allocated area. For example, Figure 58 shows a layout view that arranges a group of buttons in a grid matrix layout.


The classes provided include:


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker