18 Menu

▼ |  | Framework: Racket GUI Application Framework

1 | Application
2 | Autosave
3 | Canvas
4 | Color Model
5 | Color Prefs
6 | Color
7 | Comment Box
8 | Editor Snip
9 | Editor
10 | Exit
11 | Finder
12 | Frame
13 | Group
14 | GUI Utilities
15 | Handler
16 | Icon
17 | Keymap
18 | Menu
19 | Mode
20 | Number Snip
21 | Panel
22 | Pasteboard
23 | Path Utils
24 | Preferences
25 | Preferences, Textual
26 | Racket
27 | Text
28 | Splash
29 | Test
30 | Version
| Index

On this page:

menu: can-restore<%>
restore-keybinding
menu: can-restore-mixin
menu: can-restore-underscore<%>
erase-underscores
restore-underscores
menu: can-restore-underscore-mixin
menu: can-restore-menu-item%
menu: can-restore-checkable-menu-item%
menu: can-restore-underscore-menu%

top← prev up next →

### 18`` Menu

menu:can-restore<%> : interface?

implements: | selectable-menu-item<%>

Classes created with this mixin remember their keybindings so the keybindings can be removed and then restored.

> ( send a-menu:can-restore restore-keybinding) → void

> Sets the keyboard shortcut to the setting it had when the class was created.

menu:can-restore-mixin : ( class? . -> . class?)

argument extends/implements: | selectable-menu-item<%>

result implements: | menu:can-restore<%>

menu:can-restore-underscore<%> : interface?

implements: | labelled-menu-item<%>

These menus can save and restore the underscores (indicated via the & characters in the original labels) in their labels.
If the preference 'framework:menu-bindings is #f, calls erase-underscores during initialization.

> ( send a-menu:can-restore-underscore erase-underscores) → void

> Erases the underscores in the label of this menu, but remembers them so they can be restores with restore-underscores.

> ( send a-menu:can-restore-underscore restore-underscores)
> → void

> Restores underscores in the menu’s label to their original state.

menu:can-restore-underscore-mixin : ( class? . -> . class?)

argument extends/implements: | labelled-menu-item<%>

result implements: | menu:can-restore-underscore<%>

menu:can-restore-menu-item% : class?
superclass: ( menu:can-restore-mixin menu-item%)

menu:can-restore-checkable-menu-item% : class?
superclass: ( menu:can-restore-mixin checkable-menu-item%)

menu:can-restore-underscore-menu% : class?
superclass: ( menu:can-restore-underscore-mixin menu%)

top← prev up next →