How do I hide "Preferences" item in this picture when "undo and redo" items are able to hide? I tried using (preferences:hide-dialog) but there was no difference in GUI.
#lang racket/gui
(require framework)
(define menu-super-frame%
(frame:standard-menus-mixin
frame:basic%))
(define menu-frame%
(class menu-super-frame%
(inherit get-file-menu set-icon)
;hiding items in edit menu
(define/override (edit-menu:create-undo?) #f)
(define/override (edit-menu:create-redo?) #f)
(super-new)))
(define top-frame
(new menu-frame%
[label "Main Window"]
[width 200]
[height 200]
[alignment (list 'left 'top)]))
Use
Note: I haven't tested that it works, but digging in the code shows that the following are defined: