chickadee » bb » bb:set-menu-item-active!

bb:set-menu-item-active! WIDGET INDEX FLAGprocedure

Activates or deactivates the menu item with the index INDEX in the menu-bar WIDGET, depending on the boolean FLAG. Counting menu-items starts with 0 and every sub-menu increases the count by one. Note that each sub-menu introduces an invisible extra menu-item that has to be counted in.