MQWidget.Memo class

A text edit with multiple lines 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

Method

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

Memo([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