Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep?

35 views
Skip to first unread message

Don Green

unread,
Jun 25, 2021, 9:10:41 PM6/25/21
to Racket Users
Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep?

In other words, I am able to define menu-item options such that I do get a menu-bar with options that present sub options and I can call functions using 'callback' from those suboptions, but I have thus far not been successful at creating a deeper hierarchy of subsuboptions.

schle...@gmail.com

unread,
Jun 26, 2021, 9:01:31 AM6/26/21
to Racket Users

You can't create a hierarchy of menu-items%, because menu-items are always leaf nodes (a "terminating" node in the hierarchy).
But you can have many nested menu% elements which can have menu-item% as children wherever you want to be a clickable item, instead of another sub menu.
Reply all
Reply to author
Forward
0 new messages