The inspector
The inspector lists the properties of the first selected component. Type a new value and press Enter, or leave the cell, to apply it. A value the script cannot take is refused, and the status bar says why. A row drawn in red has a warning in Messages: see Texts that cannot be written.
The rows a component has are the properties EasyUO 1.6 gives its kind (the table behind
menu GetProp), plus the values only its creating line can set. They are in
alphabetical order.
Values
Section titled “Values”- Yes / no for on and off.
- Colours: a name, such as
RedorBtnFace(the system’s button colour), or a number,$BBGGRRor decimal as inmenu Font Color. The … button opens a colour picker. - Font style: any of
bold,italic,underline,strikeout, orplain. The … button opens a font dialog that sets the font, its size, style and colour together. - Text with several lines (a text or a memo) shows each line break as
¶; the … button edits it as lines.
What each property becomes
Section titled “What each property becomes”The script sets most values through the defaults a control is created with, and the rest after it is created:
| Property | In the script |
|---|---|
| Name | the control’s name on every line |
| Left, Top, Width, Height | the creating line; a fixed size of a text or an edit: menu SetProp width / height |
| Text | the creating line; a form’s title: menu Form or menu Window Title |
| Font, Font size, Font style, Font colour, Colour, Alignment / Text side | before the creating line: menu Font Name, menu Font Color and menu Font BgColor (colours by name where there is one), and menu SetDef for the size, style and alignment |
| Checked | the creating line of a check box or a radio button |
| Tooltip, Enabled, Visible | menu SetProp after the creating line |
| Parent | which form or panel the control is created in (menu SetDef parent) |
| Items, Selected | menu Combo or menu List add and select |
| Shape, Line, Fill and their colours | the menu Shape line |
| Drawing, Stretched | menu Image drawing lines and menu Image Pos |
| Transparency (form0) | menu Window Transparent |
Sizes a control gives itself
Section titled “Sizes a control gives itself”A text fits itself to its words, and an edit’s and a combo box’s height comes from their font. Their rows
show the size the script will produce, and a Width fixed / Height fixed row. Set a size, or drag a
handle on the canvas, and it becomes fixed: the script sets it with menu SetProp after creating the
control. Set fixed back to no to let the control fit itself again.
A form has a Title, its position on the screen (Left, Top), the size of its inside (Width,
Height), Colour, Shown (whether the script shows it), Enabled and Tooltip. form0 also
has Transparency: none, or 0 (most see-through) to 100.
Items and drawings
Section titled “Items and drawings”-
Items (combo box, list): the … button edits them one per line. Selected is the number of the selected item, 1 for the first, 0 for none.
-
Drawing (image): the … button edits the drawing as lines, in the order they are drawn, each as
menu Imagewrites it after the image’s name:rectangle 0 0 40 20 Red 1 1line 0 0 39 19 Blue 2pix 5 5 Blackfile 0 0 C:\pictures\logo.bmpellipseandrectangletake two corners, not a width and a height, then the colour,1to fill, and the pen width.
Texts that cannot be written
Section titled “Texts that cannot be written”A line of script is split into words before it runs, and some texts do not survive that: two spaces in a
row, a word that starts with %, #, ! or * (a variable), a word that starts with ; (a comment),
a lone . or , (they join the words around them). In a text or a memo, a $ is a line break.
Such a text gets a warning in Messages, its row turns red, and the file gets the text without the parts
that would change, so the script shows what the canvas shows. A text label that needs a real $ gets it
from menu SetProp ... text, which does not turn $ into a line break.