Re: Menu examples
"Rodolfo (kix)" <[email protected]> Sat, 19 Aug 2017 21:07:05 +0200
| Newsgroups | gmane.compw.window-managers.windowmaker.devel |
|---|---|
| Message-ID | <CADVdY=Dtwt0gc4mQnXFSNuy_rSa-VTH_3xtFtNhavdr4PwT+wA@mail.gmail.com> |
--001a1141029099724405571ff3a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Aug 17, 2017 at 7:50 PM, Doug Torrance <[email protected]> wrote: > 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 men= u >> files in ~/GNUstep/Defaults/UserMenus (/usr/local/etc/WindowMaker/Us >> erMenus >> 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]= . > Thanks a lot Doug, I was testing it. I didn't have problems with the usermenu, but running wtest I can't see the appmenu. The problem is only here? --=20 Rodolfo Garc=C3=ADa "kix" http://www.kix.es/ --001a1141029099724405571ff3a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo= te">On Thu, Aug 17, 2017 at 7:50 PM, Doug Torrance <span dir=3D"ltr"><<a= href=3D"mailto:[email protected]" target=3D"_blank">dtorrance@piedmon= t.edu</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m= argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class= =3D"">On 08/17/2017 10:37 AM, Rodolfo (kix) wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> I need two things:<br> <br> - example of usermenu<br> </blockquote> <br></span> From NEWS:<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Application User Menu<br> ---------------------<br> <br> Applications with an appicon can have a user defined menu.<br> <br> This menu will emulate keyboard events, and will be sent to the application= s'<br> window(s), thus the application must accept key combinations (CTRL+N for<br= > instance).<br> <br> To enable this feature, #define USER_MENU in src/wconfig.h and place menu<b= r> files in ~/GNUstep/Defaults/UserMenus (/usr/local/etc/WindowMaker/Us<wbr>er= Menus<br> globally).<br> <br> The user menu is in PropList format and the filename is in:<br> <instance name>.<class name>.menu or application's main win= dow.<br> (Example: the menu for xcalc would be - xcalc.XCalc.menu)<br> <br> Example user menu syntax:<br> <br> (<br> =C2=A0 "Calculator",<br> =C2=A0 ("Put 1", SHORTCUT, "2"),<br> =C2=A0 ("Functions",<br> =C2=A0 =C2=A0 ("Put 2", SHORTCUT, "2"),<br> =C2=A0 =C2=A0 ("Put 3,4 and 5", SHORTCUT, (3,4,5))<br> =C2=A0 ),<br> =C2=A0 ("Exit", SHORTCUT, "Control+q")<br> )<br> </blockquote> <br> This looks like a pretty cool feature -- I'll have to play around with = it!<span class=3D""><br> <br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> - example of application using appmenu and how to use it.<br> </blockquote> <br></span> test/wtest.c is a little test app with an appmenu.<br> <br> Have a good one,<br> Doug<span class=3D"HOEnZb"><font color=3D"#888888"><br> <br> <br> <br> <br> <br> <br> -- <br> To unsubscribe, send mail to <a href=3D"mailto:wmaker-dev-unsubscribe@lists= .windowmaker.org" target=3D"_blank">[email protected]<wbr>indo= wmaker.org</a>.<br> </font></span></blockquote></div><br></div><div class=3D"gmail_extra">Thank= s a lot Doug,<br><br></div><div class=3D"gmail_extra">I was testing it. I d= idn't have problems with the usermenu, but running wtest I can't se= e the appmenu.<br><br></div><div class=3D"gmail_extra">The problem is only = here?<br clear=3D"all"></div><div class=3D"gmail_extra"><br>-- <br><div cla= ss=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr">= <div>Rodolfo Garc=C3=ADa "kix"<br><a href=3D"http://www.kix.es/" = target=3D"_blank">http://www.kix.es/</a></div></div></div> </div></div> --001a1141029099724405571ff3a3-- -- To unsubscribe, send mail to [email protected].