Text Field

Top  Previous  Next

Text Field is a component that allows editing a single line of text.

gb_component_textfield

Here is what a text field looks like:

ls_widgets_text_field

Common Properties

Width, Height, Bindings, Enabled, Visible, Foreground, Background, Opaque, Border, Font, Tooltip

Custom Properties

Text (Default Property)

Default text in the text field.

Property name: text

Property type: String

Editable

This flag indicates that text in the text field can be changed. The primary difference between non-editable and non-enabled components is that text in a non-editable component is not grayed out and may be selected using the mouse.

Alignment

Horizontal alignment of text within label display area.

Possible values:

Description

Value

Left

2

Center

0

Right

4

Property name: horizontalAlignment

Property type: Integer

Common Events

Hidden, Shown, Moved, Resized, Mouse Clicked, Mouse Pressed, Mouse Released, Mouse Entered, Mouse Exited, Mouse Moved, Mouse Wheel Moved, Key Typed, Key Pressed, Key Released, Focus Gained, Focus Lost

Custom Events

Caret Update

This event fires each time when a caret is moved or any text is entered in the component.

Event name: caretUpdate