Basic Full | Plain view ( html)

<?xml version="1.0" ?> <menu> # a top XML tag <item id="file" text="File"> # a top-level item <item id="new" text="New" img="new.gif" imgdis="new_dis.gif"> # a sub-level item with images for enabled/disanled states <hotkey>Ctrl+N</hotley> # a hotkey (just a text) to a menu item </item> <item id="ms1" type="separator"/> # a sub-level separator item ... <item id="export" text="Export"> <item id="export_pdf" text="PDF" enabled="false"/> # a sub-level item disabled by default ... </item> ... <item id="eol" text="End of Line"> <item id="eol_u" text="Unix (\n)" type="radio" group="eol" checked="true"/> # a radiobutton, group "eol", checked by default <item id="eol_w" text="DOS/Windows (\r\n)" type="radio" group="eol"/> # a radiobutton, group "eol" <item id="eol_m" text="MacOS (\r)" type="radio" group="eol"/> # a radiobutton, group "eol" <item id="eol_m" text="MacOS (\r)" type="radio" group="eol"/> # a radiobutton, group "eol", disabled # we got a radiogroup "eol" with 4 buttons, 1 of which is disabled </item> <item id="ms2" type="separator"/> <item id="ignorecase" text="Ignore Case" type="checkbox" checked="true" enabled="false"/> # a disabled checked checkbox <item id="checkspelling" text="Check Spelling" type="checkbox"/> # an unchecked checkbox </item> </menu> <?xml version='1.0' ?> <menu> # a top XML tag <item id="file" text="File"> # a top-level item <item id="new" text="New" /> # a sub-level item <item id="ms1" type ="separator"/> # a sub-level separator item ... <item id="export" text="Export"> <item id="export_pdf" text="PDF" /> # a sub-level item ... </item> ... </item> </menu>
a menu item, either a top- or a sub-level one; each item must have a unique ID
id of a menu item
label (text) of a menu item
path to the image for the enabled state of a menu item
path to the image for the disabled state of a menu item
sets a menu item as enabled (true) or disabled (false) by default
sets menu item's type: whether it is a radiobutton (radio), a checkobox (checkbox), or a separator (separator)
sets the name of a radiogroup for several radiobuttons
specifies whether a radiobutton or a checkbox is checked or not