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: Macintosh Toolbox Essentials /
Chapter 6 - Dialog Manager / Dialog Manager Reference
Dialog Manager Routines / Manipulating Items in Alert and Dialog Boxes


CountDITL

You can determine the number of items in a dialog box by using the CountDITL function.

FUNCTION CountDITL (theDialog: DialogPtr): Integer;
theDialog
A pointer to a dialog record.
DESCRIPTION
The CountDITL function returns the number of current items in a dialog box. You typically use CountDITL in conjunction with ShortenDITL to remove items from a dialog box.

SPECIAL CONSIDERATIONS
The CountDITL function is available in System 7 and in earlier versions of the Communications Toolbox. Before calling CountDITL, you should make sure that it is available by using the Gestalt function with the gestaltDITLExtAttr selector. Test the bit
indicated by the gestaltDITLExtPresent constant in the response parameter. If the bit is set, then CountDITL is available.

SEE ALSO
The Gestalt function is described in the chapter "Gestalt Manager" in Inside Macintosh: Operating System Utilities.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996