Progress
Programming
Handbook


Grids

Progress allows the user to use grids to align widgets within frames. A grid is a framework of crisscrossed bars whose width and height you can control by setting the appropriate attributes. Figure 24–5 shows how a grid appears on screen.

Figure 24–5: Grid

The dots in Figure 24–5 are called visible grid points. The distance between two of these small dots is called a minor grid unit. The distance between one grid line and another grid line is called a major grid unit. Inside each of the squares on the grid there are invisible grid points (see Figure 24–6).

Figure 24–6: Grid Enlargement

You can control the appearance of grids with the following attributes (these attributes apply to frames only):

When the user moves a widget and the frame’s GRID–SNAP attribute is set to TRUE, the widget’s upper left corner snaps to the nearest grid point. This is true even if the GRID–VISIBLE attribute is set to FALSE. Note that widgets that are already placed in the frame are not affected when you set GRID–SNAP to TRUE. However, if you move or resize a widget in the frame, it then snaps to the nearest grid point.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095