Re: ANN: PopUp Menu with Key-Combination Shortcuts
Thanks very much, I'll change it! Forgive me for asking, but should we refer to you as TheSlug? Cheers, Roger Guay On Apr 22, 2010, at 1:01 AM, use-revolution-requ...@lists.runrev.com wrote: Hi Roger, Interesting demo, thanks for sharing ;) Instead of the repeat loop to look for the correct item: on controlKeyDown theKey set itemdelimiter to tab repeat for the number of lines of btn popupMenu -- Menu items are the lines of the Popup btn add 1 to theNum if last char of line theNum of btn popupMenu = theKey then \ put item 1 of line theNum of btn PopupMenu into fld Rfld end repeat pass controlKeyDown end controlKeyDown You may use the lineOffset function like this: get lineOffset(ctrl+ theKey,btn popupMenu) if (it is 0) then put Nothing into fld Rfld else put item 1 of line it of btn PopupMenu into fld Rfld end if Just a suggestion to facilitate the work of Revolution ;) Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: PopUp Menu with Key-Combination Shortcuts
Personally, inside my head, I refer to him as Zryip (pronounced Zeerip in portuguese)... On Thu, Apr 22, 2010 at 3:58 PM, Roger Guay i...@mac.com wrote: Thanks very much, I'll change it! Forgive me for asking, but should we refer to you as TheSlug? Cheers, Roger Guay On Apr 22, 2010, at 1:01 AM, use-revolution-requ...@lists.runrev.comwrote: Hi Roger, Interesting demo, thanks for sharing ;) Instead of the repeat loop to look for the correct item: on controlKeyDown theKey set itemdelimiter to tab repeat for the number of lines of btn popupMenu -- Menu items are the lines of the Popup btn add 1 to theNum if last char of line theNum of btn popupMenu = theKey then \ put item 1 of line theNum of btn PopupMenu into fld Rfld end repeat pass controlKeyDown end controlKeyDown You may use the lineOffset function like this: get lineOffset(ctrl+ theKey,btn popupMenu) if (it is 0) then put Nothing into fld Rfld else put item 1 of line it of btn PopupMenu into fld Rfld end if Just a suggestion to facilitate the work of Revolution ;) Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: PopUp Menu with Key-Combination Shortcuts
2010/4/22 Roger Guay i...@mac.com: Thanks very much, I'll change it! Cheers, Roger Guay You're welcome Roger ;) Forgive me for asking, but should we refer to you as TheSlug? My colleagues and friends call me the slug 8-) 2010/4/22 Andre Garzia an...@andregarzia.com: Personally, inside my head, I refer to him as Zryip (pronounced Zeerip in portuguese)... Don't change anything in your mind Andre. Zryip is the sound produced by a slug launched at full speed on the road. The next time you see a slug cross a road, prick up your ears and you'll hear this sound. 8-) Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
ANN: PopUp Menu with Key-Combination Shortcuts
I just uploaded a stack to Rev Online that shows a rather simple (I didn't say elegant) way to make popup menus with key-combination shortcuts. Just look for Popup Menu w Shortcuts. I would appreciate any improvement suggestions. Thanks and cheers, Roger Guay ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: PopUp Menu with Key-Combination Shortcuts
2010/4/21 Roger Guay i...@mac.com: I just uploaded a stack to Rev Online that shows a rather simple (I didn't say elegant) way to make popup menus with key-combination shortcuts. Just look for Popup Menu w Shortcuts. I would appreciate any improvement suggestions. Thanks and cheers, Roger Guay Hi Roger, Interesting demo, thanks for sharing ;) Instead of the repeat loop to look for the correct item: on controlKeyDown theKey set itemdelimiter to tab repeat for the number of lines of btn popupMenu -- Menu items are the lines of the Popup btn add 1 to theNum if last char of line theNum of btn popupMenu = theKey then \ put item 1 of line theNum of btn PopupMenu into fld Rfld end repeat pass controlKeyDown end controlKeyDown You may use the lineOffset function like this: get lineOffset(ctrl+ theKey,btn popupMenu) if (it is 0) then put Nothing into fld Rfld else put item 1 of line it of btn PopupMenu into fld Rfld end if Just a suggestion to facilitate the work of Revolution ;) Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution