Working with Layout Managers

Layout managers are created and referenced through a handle data item of type LAYOUT-MANAGER.

The declaration of a layout manager handle may include automatic initialization, in the same fashion as font handles. You can name any of the standard layout managers after the word LAYOUT-MANAGER. Currently, there is only one standard layout manager, LM-RESIZE, the resize manager. For example:

77  MY-LAYOUT HANDLE OF LAYOUT-MANAGER, LM-RESIZE.

Like all handles, a layout manager consumes memory while allocated. You free this memory with the DESTROY verb. For example:

DESTROY MY-LAYOUT

You get a layout manager handle by using the statement ACCEPT FROM STANDARD OBJECT. For example:

ACCEPT MY-LAYOUT FROM STANDARD OBJECT "LM-RESIZE"

You do not need to do this if you use the initialization option mentioned above. The layout manager returned by ACCEPT FROM STANDARD OBJECT is a copy of the standard manager. Therefore, you should destroy it when you are done with it. Destroying it will not affect other copies.