GetText (text box)
SetText (text box)
Font property (text box)
TextBox.GetText(string buffer)Retrieves the contents of the textbox into BUFFER. This allows you to find out what the player typed in, and to process the input appropriately.
Example:
string input; txtUserInput.GetText(input); Display("%s", input);will retrieve what the user typed in the txtUserInput text box, and display it in a message box.
See Also: TextBox.SetText, StrCaseComp, StrComp
TextBox.SetText(string newtext)Changes the text box to contain NEWTEXT. This might be useful to reset the text box to blank after the user has typed something in, or to fill in a default value.
Example:
txtUserInput.SetText("");will clear the txtUserInput text box.
See Also: TextBox.Font, TextBox.GetText, Label.SetText
int TextBox.FontGets/sets the font used by the specified text box. This might be useful if you need a player input text box to use a different font with foreign language translations, for example.
Example:
txtUserInput.Font = 1;will change the txtUserInput text box to use Font 1.
See Also: Label.Font, TextBox.SetText
Browser Based Help. Published by chm2web software. |