There is an issue with cascading menus and the menuHistory property:

From the Rev docs:

Note: The effect of the menuHistory property in cascading menus is ambiguous. Avoid setting or relying on the menuHistory of a cascading menu.

This is ugly and stupid, but works:

on menuPick pWhich

repeat with i = 1 to the number of menuitems of btn "help"
put menuitem i of btn "help" & return after helpmenuitems
end repeat
set the itemDel to "|"
get lineOffset(item 2 of pWhich,helpmenuitems)
if char 1 to 2 of menuitem it of btn "help" = "!c" then
delete char 1 to 2 of menuitem it of btn "help"
else
put "!c" before menuitem it of btn "help"
end if
.
.
.
This allows multiple checkmarks in the same submenu, so if you did not want that, some additional code would be required.


Scott

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to