Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: More Macintosh Toolbox /
Chapter 4 - List Manager / List Manager Reference
List Manager Routines / Changing the Size of Cells and Lists


LCellSize

You can change the size of cells by using the LCellSize procedure. All cells in a list must be the same size, however.

PROCEDURE LCellSize (cSize: Point; lHandle: ListHandle);
cSize
The new size of each cell in the list.
lHandle
The list whose cells' size is being changed.
DESCRIPTION
The LCellSize procedure sets the cellSize field of the list record referenced by the lHandle parameter to the value of the cSize parameter. That is, the list's new cells will be of width cSize.h and of height cSize.v.

The LCellSize procedure updates the list's visible rectangle to contain cells of the specified size. However, LCellSize does not redraw any cells.

SPECIAL CONSIDERATIONS
You should not call the LCellSize procedure from within an interrupt, such as in a completion routine or VBL task.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the LCellSize procedure are
Trap macroSelector
_Pack0$0014


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996