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 / Handling Text in Alert and Dialog Boxes


DialogPaste

When a dialog box containing an editable text item is active, use the DialogPaste procedure to handle the Paste editing command. The DialogPaste procedure is also available as the DlgPaste procedure.

PROCEDURE DialogPaste (theDialog: DialogPtr);
theDialog
A pointer to a dialog record.
DESCRIPTION
The DialogPaste procedure checks whether the dialog box has any editable text
items and, if so, applies the TextEdit procedure TEPaste to the selected editable text item. Your application should test whether a dialog box is the frontmost window
when handling mouse-down events in the Edit menu and then call this routine when appropriate.

SEE ALSO
For more information about allowing access to your menus when your application displays dialog boxes, see "Adjusting Menus for Modal Dialog Boxes" beginning on page 6-68 and "Adjusting Menus for Movable Modal and Modeless Dialog Boxes" on page 6-73. The TEPaste procedure is described in the chapter "TextEdit" in Inside Macintosh: Text.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996