Important: The information in this document is obsolete and should not be used for new development.
Handling Text in Alert and Dialog Boxes
The Dialog Manager provides several routines for manipulating text. You can use theParamTextprocedure to supply text strings, such as document titles, dynamically
in the static text items of alert and dialog boxes. TheGetDialogItemTextandSetDialogItemTextprocedures are useful for determining and changing text in both static text and editable text items. You can use theSelectDialogItemTextprocedure to select and highlight text in an editable text item.When a dialog box containing an editable text item is active, use the
DialogCutprocedure to handle the Cut editing command, theDialogCopyprocedure to handle the Copy command, theDialogPasteprocedure to handle the Paste command, and theDialogDeleteprocedure to handle the Clear command.Once you determine that an event occurs in a modeless or movable modal dialog box, you can use the
DialogSelectfunction, which is described on page 6-132, to handle key-down events in editable text items automatically. TheModalDialogprocedure
usesDialogSelectto handle key-down events in the editable text items of modal dialog boxes.
Subtopics
- ParamText
- GetDialogItemText
- SetDialogItemText
- SelectDialogItemText
- DialogCut
- DialogCopy
- DialogPaste
- DialogDelete