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 theParamText
procedure to supply text strings, such as document titles, dynamically
in the static text items of alert and dialog boxes. TheGetDialogItemText
andSetDialogItemText
procedures are useful for determining and changing text in both static text and editable text items. You can use theSelectDialogItemText
procedure to select and highlight text in an editable text item.When a dialog box containing an editable text item is active, use the
DialogCut
procedure to handle the Cut editing command, theDialogCopy
procedure to handle the Copy command, theDialogPaste
procedure to handle the Paste command, and theDialogDelete
procedure to handle the Clear command.Once you determine that an event occurs in a modeless or movable modal dialog box, you can use the
DialogSelect
function, which is described on page 6-132, to handle key-down events in editable text items automatically. TheModalDialog
procedure
usesDialogSelect
to handle key-down events in the editable text items of modal dialog boxes.
Subtopics
- ParamText
- GetDialogItemText
- SetDialogItemText
- SelectDialogItemText
- DialogCut
- DialogCopy
- DialogPaste
- DialogDelete