Re: Menu examples
"Rodolfo (kix)" <[email protected]> Sun, 20 Aug 2017 22:01:02 +0200
| Newsgroups | gmane.compw.window-managers.windowmaker.devel |
|---|---|
| Message-ID | <CADVdY=AOZNDx3EuHOaC1Xxaz9MMq1c5JeheCQKKA_hLLvbmLsw@mail.gmail.com> |
--94eb2c1a61125cbeda055734d2e6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Please, is possible that somebody try to run test/wtest and tell me if the menu is showed? Thanks!! On Sat, Aug 19, 2017 at 9:07 PM, Rodolfo (kix) <[email protected]> wrote: > > > 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 fo= r >>> instance). >>> >>> To enable this feature, #define USER_MENU in src/wconfig.h and place me= nu >>> 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 i= t! >> >> - 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]= g >> . >> > > 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? > > -- > Rodolfo Garc=C3=ADa "kix" > http://www.kix.es/ > --=20 Rodolfo Garc=C3=ADa "kix" http://www.kix.es/ --94eb2c1a61125cbeda055734d2e6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div>Please,<br><br></div>is possible that someb= ody try to run test/wtest and tell me if the menu is showed?<br></div><br><= /div>Thanks!!<br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_q= uote">On Sat, Aug 19, 2017 at 9:07 PM, Rodolfo (kix) <span dir=3D"ltr"><= <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>></span> w= rote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde= r-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div class=3D= "h5"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu, = Aug 17, 2017 at 7:50 PM, Doug Torrance <span dir=3D"ltr"><<a href=3D"mai= lto:[email protected]" target=3D"_blank">[email protected]</a>>= ;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 = .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>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><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"m_744305848977772794HOEnZb"><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></div><div class=3D"gmail_= extra">Thanks a lot Doug,<br><br></div><div class=3D"gmail_extra">I was tes= ting it. I didn't have problems with the usermenu, but running wtest I = can't see the appmenu.<br><br></div><div class=3D"gmail_extra">The prob= lem is only here?<br clear=3D"all"></div><span class=3D""><div class=3D"gma= il_extra"><br>-- <br><div class=3D"m_744305848977772794gmail_signature" dat= a-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Rodolfo Garc=C3=ADa &= quot;kix"<br><a href=3D"http://www.kix.es/" target=3D"_blank">http://w= ww.kix.es/</a></div></div></div> </div></span></div> </blockquote></div><br><br clear=3D"all"><br>-- <br><div class=3D"gmail_sig= nature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Rodolfo Ga= rc=C3=ADa "kix"<br><a href=3D"http://www.kix.es/" target=3D"_blan= k">http://www.kix.es/</a></div></div></div> </div> --94eb2c1a61125cbeda055734d2e6-- -- To unsubscribe, send mail to [email protected].