|
GUI control object this displays a single line of text, without TorqueML. More...
Public Member Functions | |
void | setText (string text) |
Sets the text in the control. | |
void | setTextID (string textID) |
Maps the text ctrl to a variable used in localization, rather than raw text. | |
Public Attributes | |
int | maxLength |
Defines the maximum length of the text. The default is 1024. | |
caseString | text |
The text to show on the control. | |
string | textID |
Maps the text of this control to a variable used in localization, rather than raw text. |
GUI control object this displays a single line of text, without TorqueML.
new GuiTextCtrl() { text = "Hello World"; textID = ""STR_HELLO""; maxlength = "1024"; //Properties not specific to this control have been omitted from this example. };
void GuiTextCtrl::setText | ( | string | text | ) |
Sets the text in the control.
text | Text to display in the control. |
Reimplemented in GuiTextEditCtrl, and GuiPopUpMenuCtrlEx.
void GuiTextCtrl::setTextID | ( | string | textID | ) |
Maps the text ctrl to a variable used in localization, rather than raw text.
textID | Name of variable text should be mapped to |
// Inform the GuiTextCtrl control of the textID to use %thisGuiTextCtrl.setTextID("STR_QUIT");
Defines the maximum length of the text. The default is 1024.
caseString GuiTextCtrl::text |
The text to show on the control.
string GuiTextCtrl::textID |
Maps the text of this control to a variable used in localization, rather than raw text.