Single-line text entry widget
This module is only available from the UI process Lua state.
The entry widget shows a text box for single-line user input.
entry:insert (position, text)
Insert text into the entry widget.
positionType: integerOptionalOptional position at which to insert text. Defaults to inserting at the end of any text already in the entry widget.
textType: stringThe text to insert.
entry:select_region (startpos, startpos)
Select some or all of the text within the entry widget.
startposType: integerThe start of the region.
startposType: integerOptionalThe end of the region. Defaults to the end of the text in the entry widget.
The position of the caret within the entry widget.
The contents of the entry widget.
The color of the text within the entry widget.
The background color of the entry widget.
The font to use to display the text within the entry widget.
Whether the frame surrounding the entry widget should be shown.
Emitted when the entry widget is activated by pressing the
Emitted when the text within the entry widget changes.
Emitted when the position of the caret within the entry widget changes.
Emitted when a key is pressed while the entry widget has the input focus.
modifiersType: tableAn array of strings, one for each modifier key held.
keyType: stringThe key that was pressed, if printable, or a keysym otherwise.
trueif the event has been handled and should not be propagated further.
- 2010 Mason Larobina