Entry object

The Entry widget provides single-line text input for user data entry

Event Description
Entry:onChange() Event fired when Entry has just been modified
Entry:onClick() Event occurs when the user clicks on the Entry
Entry:onCreate() Event fired when Entry has just been created
Entry:onDrop() Event fired when the Entry received a drag and drop content
Entry:onHide() Event fired when the Entry is hidden
Entry:onHover() Event fired when the user moves the mouse pointer over the Entry
Entry:onLeave() Event fired when the mouse cursor leaves the Entry
Entry:onMouseDown() Event fired when the user presses a mouse button over the Entry
Entry:onMouseUp() Event fired when the user releases a mouse button over the Entry
Entry:onSelect() Event fired when the user has entered a new text
Entry:onShow() Event fired when the Entry is shown
Property Description Access Type
Entry.align Align the Entry relative to its parent readwrite boolean
Entry.allowdrop Controls whether the Entry is a drag and drop target readwrite boolean
Entry.canundo Get wether the user can undo the last Entry operation readonly boolean
Entry.cursor Get/set the image of the mouse cursor as it hovers over the Entry readwrite string
Entry.enabled Controls whether the Entry responds to mouse and other events readwrite boolean
Entry.font Get/set the Entry font readwrite string
Entry.fontsize Get/set the Entry font size readwrite number
Entry.fontstyle Get/set the Entry font style readwrite table
Entry.height Get/set the Entry's height readwrite number
Entry.masked Get/set wether user input is visible or masked readwrite boolean
Entry.modified Get/set wether Entry's content has been modified readwrite boolean
Entry.parent Get the Entry's parent widget readonly
Entry.text Get/set the Entry text content readwrite string
Entry.textalign Get/set the Entry text alignment readwrite string
Entry.textlimit Get/set the maximum text length of the Entry readwrite number
Entry.tooltip Get/set the Entry tooltip text readwrite string
Entry.visible Controls whether the Entry appears on screen readwrite boolean
Entry.width Get/set the Entry's width readwrite number
Entry.x Get/set the Entry's horizontal position readwrite number
Entry.y Get/set the Entry's vertical position readwrite number
Methods Description Return value
Entry:autosize() Autosizes the Entry -
Entry:center() Centers the Entry on the parent widget -
Entry:constructor() Entry object constructor
Entry:copy() Copies the text to the clipboard -
Entry:cut() Cuts the text to the clipboard -
Entry:hide() Hides the Entry -
Entry:paste() Pastes the text from the clipboard -
Entry:show() Shows the Entry -
Entry:toback() Puts the widget to the back -
Entry:tofront() Brings the widget in front -
Entry:undo() Undoes the last edit operation -