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.
Parameters
Section titled “Parameters”| 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.
Example
Section titled “Example”menu Clearmenu Window Size 300 200menu Memo notes 10 10 280 150 First line$Second linemenu Button ok 10 165 60 25 OKmenu Showset #MenuButton N/Awhile #MenuButton <> ok wait 1menu Get notesdisplay ok #MenuReshaltReforged notes
Section titled “Reforged notes”menu Memo is new in EasyUO Reforged.
1.5 and 1.6
Section titled “1.5 and 1.6”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.