Re: Menu examples

Doug Torrance <[email protected]> Thu, 17 Aug 2017 13:50:34 -0400
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
On 08/17/2017 10:37 AM, Rodolfo (kix) wrote:
> I need two things:
>
> - example of usermenu

 From NEWS:

> Application User Menu
> ---------------------
>
> Applications with an appicon can have a user defined menu.
>
> This menu will emulate keyboard events, and will be sent to the applications'
> window(s), thus the application must accept key combinations (CTRL+N for
> instance).
>
> To enable this feature, #define USER_MENU in src/wconfig.h and place menu
> files in ~/GNUstep/Defaults/UserMenus (/usr/local/etc/WindowMaker/UserMenus
> globally).
>
> The user menu is in PropList format and the filename is in:
> <instance name>.<class name>.menu or application's main window.
> (Example: the menu for xcalc would be - xcalc.XCalc.menu)
>
> Example user menu syntax:
>
> (
>   "Calculator",
>   ("Put 1", SHORTCUT, "2"),
>   ("Functions",
>     ("Put 2", SHORTCUT, "2"),
>     ("Put 3,4 and 5", SHORTCUT, (3,4,5))
>   ),
>   ("Exit", SHORTCUT, "Control+q")
> )

This looks like a pretty cool feature -- I'll have to play around with it!

> - example of application using appmenu and how to use it.

test/wtest.c is a little test app with an appmenu.

Have a good one,
Doug






-- 
To unsubscribe, send mail to [email protected].