menu: popup menu
defines wdmenu - create a popup menu
form: [xypos] wdmenu selections
if xypos is not given, the menu is placed on the current form.
<selections> is a boxed matrix of up to 4 columns, or a boxed vector or character string: - a boxed vector is treated as a 1-column boxed matrix - a character string is cut on its first element.
The columns are: 0 = selection texts 1 = options (see below, default 0) 2 = callback verb (default none) 3 = callback verb argument (default '')
options may be either an integer sum of: 1 = if checked 2 = if grayed or may itself be a 2-column boxed matrix, in which case it is treated as a submenu.
The result is 1 on cancel, otherwise it is the result of the callback verb if defined, or one or more integers being the selection on that menu. see examples in system\packages\winapi\menudemo.ijs.
Written by Oleg Kobchenko <email@example.com>. Enhanced by Alex Kornilovski <firstname.lastname@example.org>.
>> << Ndx Usr Pri JfC LJ Phr Dic Rel Voc !: wd Help User