5 lines
3.3 KiB
Plaintext
5 lines
3.3 KiB
Plaintext
en·vÅos DEFAULTSUBITEMFN
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
DEFAULTSUBITEMFN
|
||
1
|
||
|
||
4
|
||
|
||
By: Nick Briggs (Briggs.pa@Xerox.com)
|
||
The DEFAULTSUBITEMFN module redefines the DEFAULTSUBITEMFN to permit an extended specification of menu subitems. If the CAR of the 4th element of a menu item is the keyword EVAL, the CADR of that 4th element is evaluated and the results used as the subitem specifications. During the evaluation the variables MENU and ITEM are bound respectively to the menu and item of which the EVAL subitem spec is a part. This module is only a stopgap measure until it is possible to easily redefine the BackgroundMenu subitem function, but it will provide this facility on all menus that do not explicity specify a subitem function.
|
||
example menu item entries:
|
||
(foo foo.selected "No help for you!" (EVAL dynamic.foo.subitems))
|
||
using a variable containing subitems, or
|
||
(foo foo.selected "No help for you!" (EVAL (compute.foo.subitems))
|
||
using a function to recompute the subitems.
|
||
It is prudent to make the expressions used in the EVAL subitems quite efficient, since they will be called many times. |