
Prototype: GemRB.SetText(WindowIndex, ControlIndex, String|Strref)

Metaclass Prototype: SetText(String|Strref)

Description: Sets the Text of a control in a Window. In case of strrefs, any tokens contained by the string will be resolved. (For example the substring "<CHARNAME>" will be replaced by the "CHARNAME" token.) -1 is a special Strref, it will be resolved to the name/version of the running engine.

Parameters: 
WindowIndex, ControlIndex  - the control's reference
String - an arbitrary string
Strref - a string index from the dialog.tlk table.

Return value:
0 on success, -1 otherwise

See also: QueryText, DisplayString, GetControl, accessing_gui_controls

MD5: 583a8146b015a25b137c43a036043991
