Edit object

Event Description
Edit.onClick() Event occurs when the user clicks on the Edit
Edit.onShow() Event fired when the Edit is shown
Edit.onHide() Event fired when the Edit is hidden
Edit.onCreate() Event fired when Edit has just been created
Edit.onCaret() Event fired when the Edit cursor position changed
Edit.onChange() Event fired when Edit content has been modified
Edit.onSelect() Event fired when the user has made a selection in the Edit
Edit.onMouseDown() Event fired when the user presses a mouse button over the Edit
Edit.onMouseUp() Event fired when the user releases a mouse button over the Edit
Property Description Access Type
Edit.text Get/set the Edit text content readwrite string
Edit.x Get/set the Edit's horizontal position readwrite number
Edit.y Get/set the Edit's vertical position readwrite number
Edit.width Get/set the Edit's width readwrite number
Edit.height Get/set the Edit's height readwrite number
Edit.cursor Get/set the image of the mouse cursor as it hovers over the Edit readwrite string
Edit.align Align the Edit relative to its parent readwrite boolean
Edit.enabled Controls whether the Edit responds to mouse and other events readwrite boolean
Edit.visible Controls whether the Edit appears on screen readwrite boolean
Edit.parent Get the Edit's parent widget readonly Window | Groupbox
TabItem | Panel
Edit.font Get/set the Edit font readwrite string
Edit.fontstyle Get/set the Edit font style readwrite table
Edit.fontsize Get/set the Edit font size readwrite number
Edit.tooltip Get/set the Edit tooltip text readwrite string
Edit.fgcolor Get/set the global Edit text color readwrite number
Edit.bgcolor Get/set the global Edit background color readwrite number
Edit.caret Get/set the Edit's caret position readwrite number
Edit.canundo Get wether the user can undo the last Edit operation readonly boolean
Edit.canredo Get wether the user can redo the last Edit operation readonly boolean
Edit.lines Get/set the lines of text in the Edit readwrite table
Edit.line Get/set the Edit current line position readwrite number
Edit.modified Get/set wether the Edit content has been modified readwrite boolean
Edit.readonly Get/set Edit readonly mode readwrite boolean
Edit.rtf Get/set Rich Text Formatting readwrite boolean
Edit.richtext Get/set the Edit text content using Rich Text Format readwrite boolean
Edit.selection Get current Edit selection readonly table
Edit.textlength Get Edit content's length in characters readonly number
Edit.wordwrap Get/set the Edit wordwrap mode readwrite boolean
Method Description Return value
Edit.constructor() Edit object constructor Edit
Edit.save() Save Edit content to file boolean
Edit.load() Load Edit text from file boolean
Edit.append() Append text to Edit content -
Edit.center() Centers the Edit on the parent widget -
Edit.show() Shows the Edit -
Edit.hide() Hides the Edit -
Edit.cut() Cuts the text to the clipboard -
Edit.copy() Copies the text to the clipboard -
Edit.paste() Pastes the text from the clipboard -
Edit.undo() Undoes the last edit operation -
Edit.redo() Redoes the last edit operation -
Edit.searchdown() Search down text withins the Edit content number, number | nil
Edit.searchup() Search up text withins the Edit content number, number | nil
Edit.tofront() Brings the widget in front -
Edit.toback() Puts the widget to the back -