MQWidget.Edit class

A text edit class.

Super classes: MQWidget.WidgetBase

Property

get set Type Name Description
x x string text a displayed string
x x string fontName a font name
x x bool fontBold a bold font
x x float fontScale a font scale
x x bool readonly a read-only mode
x x bool password a password mode
x x string alignment an alignment for a text
[left] left
[right] right
x x string numeric a numeric input mode
[text] string
[int] integer
[double] floating point
x x int maxLength a maximum number of wide characters
[0] unlimited
[> 0] specified number
x x int maxAnsiLength a maximum number of ANSI characters
[0] unlimited
[> 0] specified number
x x int visibleColumn a number of columns to display
x x bool enterSelect Auto selection on mouse-enter
x x bool enterKeyDefault Allow default procedure by enter key

Method

Member Description
Edit Constructor.
setFocus Set a focus.
addChangedEvent Add an event after finishing to change a text.
addChangingEvent Add an event while changing a text.

Edit([parent])

Constructor.

Parameters:
MQWidget.WidgetBase parent - A parent widget

setFocus([focus])

Set a focus.

Parameters:
bool focus - a focus

addChangedEvent(callback)

Add an event after finishing to change a text.

Parameters:
function(sender) callback - callback function

addChangingEvent(callback)

Add an event while changing a text.

Parameters:
function(sender) callback - callback function