-
Notifications
You must be signed in to change notification settings - Fork 0
TextBox
TextBox is a subclass of GUIControl and therefore inherits all GUIControl's functions and properties in addition to its own, which are listed below.
(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 = eFontNormal;
will change the txtUserInput text box to use Font "Normal".
See Also: Label.Font, TextBox.Text
bool TextBox.ShowBorder
Gets/sets whether the text box's border is shown.
Border is drawn using color from TextColor property.
Compatibility: Supported by AGS 3.5.0 and later versions.
(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
int TextBox.TextColor;
Gets/sets the text color used to draw the text box. This affects both the text in the text box, and also the text box's border.
Example:
txtInput.TextColor = 14;
will change text box 'txtInput' to have yellow text.
Compatibility: Supported by AGS 3.1.0 and later versions.
See Also: TextBox.ShowBorder, TextBox.Text
Getting Started in AGS
Editor Reference
- Music and sound
- Distributing your game
- Backing up your game
- The text parser
- Translations
- Global variables
- Custom Properties
- Plugins
- Lip sync
- New Game templates
- Debugging features
- Auto-number speech files
- Integration with Windows
- Source Control integration
Engine
Scripting
- Scripting tutorial part 1
- Scripting tutorial part 2
- Pointers in AGS
- Calling global functions from local scripts
- The script header
- String formatting
- Multiple Scripts
- Understanding blocking scripts
- Dynamic Arrays
- Extender functions
- Game variables
- Predefined global script functions
- repeatedly_execute (_always)
- Custom dialog options rendering
- Built-in enumerated types
- Script language keywords
- AudioChannel functions and properties
- AudioClip functions and properties
- Character functions and properties
- DateTime functions and properties
- Dialog functions and properties
- DialogOptionsRenderingInfo functions and properties
- DrawingSurface functions and properties
- DynamicSprite functions and properties
- File functions and properties
- Game / Global functions
- GUI functions and properties
- GUI control functions and properties
- GUI Button functions and properties
- GUI InvWindow functions and properties
- GUI Label functions and properties
- GUI List Box functions and properties
- GUI Slider properties
- GUI Text Box functions and properties
- Hotspot functions and properties
- Inventory item functions and properties
- Maths functions and properties
- Mouse functions and properties
- Multimedia functions
- Object functions and properties
- Overlay functions and properties
- Palette functions
- Parser functions
- Region functions and properties
- Room functions
- Screen functions
- Speech functions and properties
- String functions
- System functions and properties
- Text display / Speech functions
- ViewFrame functions and properties
Working on Legacy games
Upgrading from a previous version
- Upgrading to AGS 2.7
- Upgrading to AGS 2.71
- Upgrading to AGS 3.0
- Upgrading to AGS 3.1
- Upgrading to AGS 3.2
- Upgrading to AGS 3.3
- Upgrading to AGS 3.3.5
- Upgrading to AGS 3.4
- Upgrading to AGS 3.4.1
Legal Notice
Getting in touch