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