Important: The information in this document is obsolete and should not be used for new development.
SetDialogItemText
After using theGetDialogItem
procedure to get a handle to an editable text item or
a static text item in a dialog box, you can use theSetDialogItemText
procedure to display a particular text string in that item. TheSetDialogItemText
procedure is also available as theSetIText
procedure.
PROCEDURE SetDialogItemText (item: Handle; text: Str255);
item
- A handle to an editable text item or a static text item in a dialog box.
text
- The text to display in the item.
DESCRIPTION
TheSetDialogItemText
procedure places the specified text in the specified item and draws the item. This procedure is useful for supplying a default text string--such as a document name--for an editable text item while your application is running.SPECIAL CONSIDERATIONS
All strings should be stored in resource files to ease translation into other languages.SEE ALSO
For static text items, theParamText
procedure, described on page 6-122, is useful when you need to determine and provide only a portion of a text string while your application is running.