Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello folks
This should be quite an easy task to solve, but... On a Mac I want to access the special Apple menu. According to Perl/Tk (Tk::Menu) documentation, this should be possible. It says: "So for a menubar named .menubar, on the Macintosh, the special menus would be .menubar.apple". Mmmm, I do not get it. If I have a simple menu:
my $toplevel = $mw->toplevel; my $menubar = $toplevel->Menu(-type => 'menubar'); #I try to add my $applemenu = $menubar->cascade(-label => '.apple');#or 'apple' my $MenuDatabase = $menubar->cascade(-label => '~Database', -tearoff = +> 0); $MenuDatabase->command(-label => "Perform query", -command => sub{Perf +ormQuery()}, -compound => 'left'); $toplevel->configure(-menu => $menubar);
This just create a new menu button, but no access to the Apple menu. Any idea?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk menu Apple macOS
by kcott (Archbishop) on Dec 23, 2018 at 09:26 UTC | |
by chrstphrchvz (Scribe) on Jan 18, 2019 at 20:53 UTC | |
by kcott (Archbishop) on Jan 21, 2019 at 06:26 UTC | |
by Anonymous Monk on Dec 23, 2018 at 10:26 UTC | |
|
Re: Tk menu Apple macOS
by Discipulus (Canon) on Dec 22, 2018 at 21:55 UTC | |
by Anonymous Monk on Dec 22, 2018 at 22:40 UTC | |
|
Re: Tk menu Apple macOS
by IB2017 (Pilgrim) on Jun 08, 2019 at 15:14 UTC |