-
Notifications
You must be signed in to change notification settings - Fork 9
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
- New Game templates
- Editor Preferences
- General Settings
- Default Setup
- Colours Editor
- Room Editor
- Character Editor
- Cursor Editor
- Dialog Editor
- Font Preview
- GUI Editor
- Inventory Items Editor
- View Editor
- Sprite Manager
- Music and sound
- Voice speech
- Script Modules
- System limits
- Log Panel
- Plugins
- Other Features
Engine
Scripting
- Scripting Tutorial
- Scripting Language
-
Scripting API
- Script API Overview
- Standard Constants
- Standard Enumerated Types
- Standard Types
- Game variables
- Global arrays
- Global event handlers
- repeatedly_execute / repeatedly_execute_always
- Custom dialog options rendering
- Global functions: general
- Global functions: message display
- Global functions: multimedia actions
- Global functions: palette operations
- Global functions: room actions
- Global functions: screen effects
- Global functions: wait
- AudioChannel functions and properties
- AudioClip functions and properties
- Camera functions and properties
- Character functions and properties
- DateTime functions and properties
- Dialog functions and properties
- DialogOptionsRenderingInfo functions and properties
- Dictionary functions and properties
- DrawingSurface functions and properties
- DynamicSprite functions and properties
- File functions and properties
- Game functions and properties
- 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
- Object functions and properties
- Overlay functions and properties
- Parser functions
- Region functions and properties
- Room functions and properties
- Screen functions and properties
- Set functions and properties
- Speech functions and properties
- String functions
- System functions and properties
- TextWindowGUI functions and properties
- ViewFrame functions and properties
- Viewport functions and properties
- Obsolete Script API
- Event Types
- Key code table
- Audio in script
Legal Notice
Getting in touch
Misc