Important: The information in this document is obsolete and should not be used for new development.
LSize
You can change the size of a list by using theLSizeprocedure. Usually, you need to do this only after calling the Window Manager procedureSizeWindow.
PROCEDURE LSize (listWidth: Integer; listHeight: Integer; lHandle: ListHandle);
listWidth- The new width (in pixels) of the list's visible rectangle.
listHeight- The new height (in pixels) of the list's visible rectangle.
lHandle- The list whose size is being changed.
DESCRIPTION
TheLSizeprocedure adjusts the lower-right side of the list specified by thelHandleparameter so that the list's visible rectangle is the width and height specified by thelistWidthandlistHeightparameters.Because the list's visible rectangle does not include room for the scroll bars, your application should make
listWidth15 pixels less than the desired width of the list if it contains a vertical scroll bar, and it should makelistHeight15 pixels less than the desired height of the list if it contains a horizontal scroll bar.The contents of the list and the scroll bars are adjusted and redrawn as necessary. However,
LSizedoes not draw a border around the list's rectangle. Also, it does not erase any portions of the old list that may still be visible. However, this approach should not be a problem if your application only callsLSizeafter the user resizes a window containing a list in its lower-right corner.SPECIAL CONSIDERATIONS
You should not call theLSizeprocedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLSizeprocedure are
Trap macro Selector _Pack0 $0060 SEE ALSO
For information on the Window Manager'sSizeWindowprocedure, see the chapter "Window Manager" in Inside Macintosh: Macintosh Toolbox Essentials.