Re: creating a submenu

24 views
Skip to first unread message

Ian Fellows

unread,
Oct 26, 2012, 2:45:05 AM10/26/12
to ded...@googlegroups.com
Not in the command line menu system or the windows GUI. Just add them
to the command line menu ( deducer() ) without putting them in a sub
menu, and attach them to the GUI with jgr.addSubMenu.

On Thu, Oct 25, 2012 at 9:48 PM, Vincent <vincen...@gmail.com> wrote:
> I am working on a custom menu for Deducer/JGR for my students. I noticed the
> Plots menu in Deducer has submenus (i.e., Quick and Interactive) and I'd
> like to use these in my menu also. I couldn't find in the Deducer
> documentation how to add these using the dialog commands. Is there something
> like a jgr.addSubMenu function?
>
> Vincent

Vincent

unread,
Oct 26, 2012, 4:04:01 AM10/26/12
to ded...@googlegroups.com
Not sure I follow Ian. Do you mean something like this?

jgr.addMenu('Test')
jgr.addSubMenu('Test','SubTest')
jgr.addMenuItem('SubTest',...)

This would work on mac but not in Windows?

Ian Fellows

unread,
Oct 27, 2012, 2:10:52 PM10/27/12
to ded...@googlegroups.com
If you are just looking to add menu items to JGR, then (as you noted)
jgr.addSubMenu is what you want. I was referring to the textual menu
system you get by typing deducer(), and the (somewhat limited)
bindings to the standard GUI that comes with R on windows.

ian

Vincent

unread,
Nov 5, 2012, 8:24:10 AM11/5/12
to ded...@googlegroups.com
Got it. The submenu's look very nice. Thanks Ian. Deducer rocks!
Reply all
Reply to author
Forward
0 new messages