SetIText
SetIText
Specify the text of an editText item and draw it Handle iHandle ; Handle of editText or statText item Str255 textStr ; address of a pascal-style string SetIText sets ( changes) the contents of an editText or statText item in a dialog and redraws the changed portion of the dialog.
iHandle is handle obtained from a previous call to GetDItem. It is actually the hText field of a TERec, as used by TextEdit. textStr is the address of a pascal-style length-prefixed string containing
the desired new text for the item whose handle is iHandle.
valid value for iHandle . See GetIText for an example of usage. Rather than changing static text with this call, you may find it convenient
to embed ^n text variables in the text and call ParamText to set them up. Use SelIText to pre-select all or a portion to ease replacement. Use GetIText to obtain the modified value of the item after calling