; Primarily alphabetized by the original statement or inserted alphabetically as the new statement.
menu Activate [name] menu activate [element's unique name]
; brings forward along with it's parent (form and/or panel) (gives focus?)
menu Button [name] [width] [height] [text] menu button [button unique name] left top height width [button label]
menu Check {name} {x} {y} {width} {height} {checked} {text} menu check [element unique name] left top width height [checked:#true/#false]
[text...]
menu Clear menu delete form0 (Note: all forms are actually deleted with the "menu clear")
menu Combo Add {name} {text} menu combo add [element unique name] [text entry...]
menu Combo Create {name} {x} {y} {width} menu combo create [element unique name] left top width
menu Combo SELECT {name} {index} menu combo select [element unique name] index
menu Delete {name} menu delete [element's unique name]
menu Edit {name} {x} {y} {width} {text} menu edit [element unique name] left top width height [text...]
[new command] menu getdef [option name: will be returned in #menures]
menu Font Align { left|right|center } menu setdef alignment [ 0|1|2 ] ; 0 = left, 1 = right, 2 = center
menu Font BGColor [color-descriptor] menu setdef color $BBGGRR
menu Font Color [color-descriptor] menu setdef fontcolor $BBGGRR
menu Font Name [font-name] menu setdef fontname [fontname]
menu Font Size {point-size} menu setdef fontsize [pointsize]
menu Font Style {b|i|u|s} menu setdef fontstyle {sum of style attributes}
; 1=bold, 2=italic, 4=underline, 8=strikeout
menu Font Transparent [ #true|#false ] -no equivalent: only works with form0
[new command] menu form [form unique name] left top width height [text]
Creates a new window which is 10 pixels wider and taller than old
measurements. It is set to "visible #false" by default, so needs to be
made visible with "menu setprop".
menu Get [name] menu get [element unique name] : sets #menures
menu GetNum {name} {default} menu GetNum {name} {default}
menu Hide menu setprop [form unique name] visible #false
menu HideEUO -No longer functions
menu List Add {name} {string} menu list add [element unique name] [text...]
menu List Create {name} {x} {y} {width} {height} menu list create [element unique name] left top width height
menu List Select {list name} {item number} menu list select [element unique name] index
menu Image Create {name} {x} {y} {width} {height} menu image create [element unique name] left top width height
All the elements created within the image reference the image_unique_name
and have relative x/y positions within it's canvas
menu Image Ellipse {name} {x1} {y1} {x2} {y2} {color} {fill} [width] menu image ellipse [element unique name] left top width height color fill width
menu Image File {name} {x} {y} {filename} menu image file [element unique name] x y [external filename]
; external filename can be one of: *.jpg, *.bmp, *.gif
menu Image FloodFill {name} {x} {y} {color} menu image floodfill [element unique name] relative-x relative-y color
menu Image Line {name} {x1} {y1} {x2} {y2} {color} [width] menu image line [element unique name] x1 y1 x2 y2 color width
menu Image Pix {name} {x} {y} {color} menu image pix [element unique name] x y color
menu Image Pixline {name} {x} {y} {data} -no equivalent
menu Image Pos {name} x y width height menu image pos [element unique name] left top width height
moves or resizes the image
menu Image Rectangle {name} {x1} {y1} {x2} {y2} {color} {fill} [width] menu image rectangle [element unique name] x1 y1 width height color fill width
; [fill: #false means transparent, otherwise fill is a color]
; [width: if fill = #false, then a line width may be set]
[new command] menu panel [panel unique name] left top height width
[new command] menu popdef
[new command] menu pushdef
[new command] menu radio [radio_unique_name] left top width height [checked: #true/#false] [labeled text...]
menu Set [element] [value] menu set [unique-element-name] [value]
menu setprop [unique-element-name] [checked #true|#false] ; For Check and Radio
menu setprop {unique-element-name] [text 'value']
[new command - but replaces some old] menu setdef
alignment [0|1|2] 0 = left, 1 = right, 2 = center
color $BBGGRR
fontcolor $BBGGRR
fontname {font name}
fontsize {point size of font}
fontstyle 1=bold, 2=italic, 4=underline, 8=strikeout
parent [parent-name]
menu setprop [element's unique name] [option #spc value pair]
alignment: RADIO,CHECK,TEXT, DEFAULT
color: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL, DEFAULT
checked: RADIO,CHECK
enabled: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL,IMAGE
fontcolor: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST, DEFAULT
fontname: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST, DEFAULT
fontsize: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST, DEFAULT
fontstyle: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST, DEFAULT
height: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL,IMAGE
left: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL,IMAGE
parent: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST, PANEL,IMAGE,DEFAULT
text: RADIO,CHECK TEXT,BUTTON,EDIT, FORM,
tooltip: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL,IMAGE
top: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL,IMAGE
visible: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL,IMAGE
width: RADIO,CHECK,TEXT,BUTTON,EDIT,COMBO,LIST,FORM,PANEL,IMAGE
menu Shape {name} {x1} {y1} {x2} {y2} {shapetype} menu Shape {element unique name} {left} {top} {width} {height} {shapetype}
{linetype} {linewidth} {linecolor} {filltype} {fillcolor} {linetype} {linewidth} {linecolor} {filltype} {fillcolor}
shapetype 1 (circle), 2 (ellipse), 3|4 (rectangle), 5|6 (square)
linetype 1 (clear), 2-7 (solid)
filltype 1-6,8 (clear), 7 (solid)
menu Show menu setprop [form unique name] visible #true
menu Text [element unique name] left top [text] menu text [element unique name] left top [text...]
; menu Window commands can be set in a single command and subsequently adjusted by menu setprop commands. See "menu form" above.
menu Window Color {color-descriptor} menu setprop [form unique name] color $BBGGRR
; Window color is *NOT* inherited from "menu setdef color",
; so must be set after creation
menu Window Size {width} {height} menu setprop [form unique name] width [width] (old {width} = [width] - 10)
menu setprop [form unique name] height [height] (old {height} = [height] - 10)
menu Window Title {title} menu setprop [form unique name] text [title]
menu Window Transparent [ opacity percentile ] -No equivalent, but now only works on form0