On Sunday 20 June 2010, Prasenjit Kapat wrote: > OK. I see the problem now. I have two questions: Is it possible for > rkward to know > > 1. when/if the current device is altered? For example, suppose abline > () is called after a plot() call, does rkward know the device has been > modified? My guess is No.
Correct. I don't see any way to do that. > 2. when/if the graphics window is closed? I can handle dev.off () and > graphics.off() but what happens if the close button on the window is > clicked? Or Window > Close (Ctl+W) is clicked? Do rlward still have a > chance to do _something_ (I've an idea of what to do) with existing > graphics? This will need a bit of hacking (the window should visually disappear at once, but the actual closing must not happen before the "something" has finished), but yes, it's definitely possible to insert some action when the window is closed. Let me know what you need done, and I'll add it, soon. > Nice!! I've done exactly that and have a rudimentary code based on > Deepayan's rp () which is working! But yet to commit to svn. I've to > figure out where/what to add/modify in the C++ codes to add additional > GUI elements to the menu of the graphics window. May be you can help > here. Cool! See svn rev. 2887 (Note that you need to do "make install" to see the new menu items). Feel free to adjust all naming, etc. Of course this is very rudimentary, so far. Esp. we should add a mechanism to disable the "next" plot action when already at the last plot, and vice versa for the "previous" action. But this should be enough to play with for a start. Regards Thomas
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________ RKWard-devel mailing list RKWard-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkward-devel