selection_change | When the selection range changes. |
modified | When the modified state changes. |
edit__banner | string | Stores banner text. |
edit__colors | table | Color table. |
edit__colors.back | number | Blurred background color. |
edit__colors.banner | number | Banner text color. |
edit__colors.error | number | Error state background color. |
edit__colors.focus | number | Focused background color. |
edit__colors.text | number | Text color. |
edit__cursor_col | number | Record of last cursor x position. |
edit__data | table | Holds line data. |
edit__end | number | Selection end position. |
edit__error | boolean | Error state flag. |
edit__fire_events | boolean | Flag to suppress events during creation. |
edit__modified | boolean | Modified flag. |
edit__read_only | boolean | Read only flag. |
edit__start | number | Selection start position. |
edit__tab | number | Tab character width. |
edit__undo | editUndo | Undo action recording object. |
tab_text | table |
Table of strings or string. |
long_eol | boolean |
If true adds 2 characters of a hard line
break, otherwise 1. |
count |
number |
The count of characters. |
str |
string |
The string to search. |
from |
number |
The position in the string to start the
search. |
pos |
number/nil |
The position of the hard break or nil. |
tab_text | table |
Table of text components. |
eol | string |
The hard break line ending to use. |
text | string |
text |
string |
The string to convert. |
tab |
table |
The table of text components. |
none |
result | boolean | True if a redo action can be performed, false if not. |
none |
result | boolean | True if an undo action can be performed, false if not. |
x | number | Scroll relative x position. |
y | number | Scroll relative y position. |
char | number | The character at the given point. |
parent | window | Parent window, typically a frame. |
id | number | Numeric id value for edit window. |
x | number | Parent relative x position. |
y | number | Parent relative y position. |
width | number | Edit window width. |
height | number | Edit window height. |
text | string/nil | Initial edit text. Initially empty if omitted or nil. |
banner | string/nil | Banner text, none if omitted or nil. |
edit | editWindow | The instantiated edit window. |
none |
none |
none |
none |
gdi | GDI | GDI object to use for drawing. |
bounds | rect | Invalidated area of the window. |
none |
none |
banner | string | The banner text. |
none |
state | boolean | True if the control is in error state, false if not. |
none |
modified | boolean | True indicates the control's contents has been modified, false otherwise. |
none |
read_only | boolean | True indicates the control is in read only mode, false for edit mode. |
normalize | boolean | If true the returned values are ensured selStart before selEnd, otherwise they are returned as is. |
start | number | The start selection position. |
end | number | The end selection position. |
eol | string | End of line character/s to use, if nil or omitted "\n" is used. |
selection | string | The selected range as a single string. |
none |
selection | table | Selected range data. |
none |
chars | number | Tab width in characters. If zero the tab key has not effect. |
eol | string | End of line character/s. If nil or omitted "\n" is used. |
text | string | The entire contents of the control as a single string. |
long_eol | boolean | If true 2 characters are counted for each end of line marker, otherwise 1. |
length | number | The character length of the edit control's contents. |
char | number | Character position to find. |
line | number | Line of the sort character. |
offset | number | Characters offset from the beginning of the line. |
line | number | The line to find the first character of. |
char | number | Character position of the first character of the line. If the line is greater than the number of lines in the control the length of the text is returned. |
none |
lines | number | Lines in the edit control's contents. |
focused | window | The window gaining focus, it may be nil. |
result | boolean | Always false. |
char | string | Single character string; the character input by user. |
ascii | number |
The character code of the input character. |
result | boolean | Always true. |
text | string | The text data to paste. |
result | boolean | Always true. |
blurred | window | The window losing focus, it may be nil. |
result | boolean | Always false. |
key | number | Key code. |
ctrl | boolean | True if control key is depressed. |
alt | boolean | True if alternate key is depressed. |
shift | boolean | True if shift key is depressed. |
result | boolean | True if a key was actioned, false if not. |
x | number | Window relative x position. |
y | number | Window relative y position. |
count | number | The number of times this same position was repeatedly clicked, with each successive click within the double_click_time. |
result | boolean | Always true. |
x | number | Window relative x position. |
y | number | Window relative y position. |
result | boolean | Always true. |
none |
result | boolean | Always false. |
none |
none |
x | number | Window relative x position. |
y | number | Window relative y position. |
result | boolean | Always true. |
none |
none |
none |
none |
replace_text | string | The replacement text. If "" or nil the currently selected range is deleted. |
auto_scroll | boolean | If not false the selection end position is scrolled into the window's view if needed after the operation. |
none |
insert | table | Replacement line data. If a table of a single empty string, {""}, any selection is deleted. |
auto_scroll | boolean | If not false the selection end position is scrolled into the window's view if needed after the operation. |
undo_action | number | The type of action for undo recording. If nil the action is not recorded. |
none |
banner | string/nil | Banner text, nil or "" for none. |
none |
text | number | Text color. |
background | number | Blurred background color. |
focus | number | Focused background color. |
banner | number | Banner text color. |
error_color | number | Error state background color. |
none | ||
state | boolean | True for error state, false for not. |
none |
modified | boolean | True or nil indicates the control's contents are modified, false for not. |
fire_event | boolean | If false the modified event is not fired. |
none |
read_only | boolean | True to set the control to read only mode, false for edit mode. |
none |
sel_start | number | The selection start character. If -1 the end of the text in the control is used. |
sel_end | number | The selection end character. If nil sel_start is used. If -1 the end of the text in the control is used. |
auto_scroll | boolean | If not false the selection end position is scrolled into the window's view if needed. |
none |
chars | number | Tab width in characters. If zero the tab key has not effect. |
none |
text | string | Text to replace entire contents of control. |
none |
none |
none |
none |
none |