Skip to content

menu Memo

menu Memo {name} {x} {y} {width} {height} {text}

Also searchable as: menu Memo · multiline edit · text area

menu Memo creates a multi-line text field: the counterpart of menu Edit for more than one line. It scrolls when the text does not fit and does not wrap long lines.

Parameter Meaning
name Name you use later in menu Get and menu Delete.
x, y Position in the menu window.
width, height Size in pixels.
text Starting text. $ starts a new line, as in menu Text.

The field uses the current menu Font settings.

menu Get returns the contents with the line breaks turned back into $, so the text can go straight into a display or another memo.

menu Clear
menu Window Size 300 200
menu Memo notes 10 10 280 150 First line$Second line
menu Button ok 10 165 60 25 OK
menu Show
set #MenuButton N/A
while #MenuButton <> ok
wait 1
menu Get notes
display ok #MenuRes
halt

menu Memo is new in EasyUO Reforged.

menu Memo is a Reforged addition and works in both, with the same syntax. In the 1.6 logic it follows the 1.6 rules: it goes into the current default parent, its name must be free, and menu GetProp / menu SetProp work on it like on an edit field, text turning $ into line breaks and back.

See also

The EasyUO 1.6 behaviour on this page was researched with help from the ScriptUO community: Gaderian's tutorial New Menu Code and how to adapt old scripts and the scripts its members share at scriptuo.com.