Important: The information in this document is obsolete and should not be used for new development.
LActivate
When your application receives an activate event for a window containing a list, it should activate or deactivate the list as appropriate. You can use theLActivateprocedure to perform highlighting of the cells and to show or hide any scroll bars.
PROCEDURE LActivate (act: Boolean; lHandle: ListHandle);
act- A Boolean value that indicates whether the list should be activated. Specify
TRUEto activate the list. SpecifyFALSEto deactivate the list.lHandle- The list to be activated or deactivated.
DESCRIPTION
TheLActivateprocedure activates the list specified by thelHandleparameter ifactisTRUEand deactivates it otherwise.If a list is being deactivated,
LActivateremoves highlighting from selected cells and hides the scroll bars. If a list is being activated,LActivatehighlights selected cells and shows the scroll bars.The
LActivateprocedure has no effect on a list's size box, if one exists.SPECIAL CONSIDERATIONS
You should not call theLActivateprocedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLActivateprocedure are
Trap macro Selector _Pack0 $0000 SEE ALSO
For information on responding to activate events in lists, see "Responding to Events Affecting a List" beginning on page 4-23. For general information on events, see the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials.