| ||
superclass: object% | ||
|
constructor
(new checkable-menu-item% [label label] [parent parent] [ [callback callback] [shortcut shortcut] [help-string help-string] [demand-callback demand-callback] [checked checked] [shortcut-prefix shortcut-prefix]]) → (is-a?/c checkable-menu-item%) label : label-string? parent : (or/c (is-a?/c menu%) (is-a?/c popup-menu%))
callback :
((is-a?/c checkable-menu-item%) (is-a?/c control-event%) . -> . any) = (lambda (i e) (void)) shortcut : (or/c char? symbol? #f) = #f help-string : (or/c label-string? #f) = #f
demand-callback : ((is-a?/c menu-item%) . -> . any) = (lambda (i) (void)) checked : any/c = #f
shortcut-prefix :
(listof (or/c 'alt 'cmd 'meta 'ctl 'shift 'option)) = (get-default-shortcut-prefix)
See set-label for information about mnemonic &s in label.
If shortcut is not #f, the item has a shortcut. See get-shortcut for more information. The shortcut-prefix argument determines the set of modifier keys for the shortcut; see get-shortcut-prefix.
If help is not #f, the item has a help string. See get-help-string for more information.
The demand-callback procedure is called by the default on-demand method with the object itself.
By default, the menu item is initially unchecked. If checked is true, then check is called so that the menu item is initially checked.
A menu item’s check state can be changed by the user selecting the item, and such changes do not go through this method; use the menu item callback procedure (provided as an initialization argument) to monitor check state changes.
method
(send a-checkable-menu-item is-checked?) → boolean?