GUI Text Box functions and properties
From AGS wiki
| This article is an entry in the AGS Manual. Please do not edit this entry except to wikify it, or keep it up-to-date with the manual or current AGS version. Instead you can discuss this article here. This page was last modified 29 January 2008, and could be out of date with the current AGS version. If you see a page is out of date, please update it! |
Owning entry: Scripting
Contents |
TextBox.BringToFront
TextBox.BringToFront is inherited from GUIControl.BringToFront.
TextBox.Clickable
TextBox.Clickable is inherited from GUIControl.Clickable.
TextBox.Enabled
TextBox.Enabled is inherited from GUIControl.Enabled.
TextBox.Font
(Formerly known as SetTextBoxFont, which is now obsolete)
FontType TextBox.Font
Gets/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.Text
TextBox.Height
TextBox.Height is inherited from GUIControl.Height.
TextBox.ID
TextBox.ID is inherited from GUIControl.ID.
TextBox.OwningGUI
TextBox.OwningGUI is inherited from GUIControl.OwningGUI.
TextBox.SendToBack
TextBox.SendToBack is inherited from GUIControl.SendToBack.
TextBox.SetPosition
TextBox.SetPosition is inherited from GUIControl.SetPosition.
TextBox.SetSize
TextBox.SetSize is inherited from GUIControl.SetSize.
TextBox.Text
(Formerly known as GetTextBoxText, which is now obsolete)
(Formerly known as SetTextBoxText, which is now obsolete)
(Formerly known as TextBox.GetText, which is now obsolete)
(Formerly known as TextBox.SetText, which is now obsolete)
String TextBox.Text;
Gets/sets the text box contents. 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.Text = "";
will clear the txtUserInput text box.
See Also: TextBox.Font, String.CompareTo, Label.Text
TextBox.Visible
TextBox.Visible is inherited from GUIControl.Visible.
TextBox.Width
TextBox.Width is inherited from GUIControl.Width.
TextBox.X
TextBox.X is inherited from GUIControl.X.
TextBox.Y
TextBox.Y is inherited from GUIControl.Y.

