Re: [R] Help: how to specify the current active window by mouse

From: Duncan Murdoch <>
Date: Thu 28 Jul 2005 - 21:58:03 EST

On 7/28/2005 7:26 AM, Shengzhe Wu wrote:
> Hello,
> When I use "windows()" to open several windows, e.g. 4 windows, device
> 2, device 3, device 4 and device 5. Normally using "dev.set()" to
> specify the current active window, if there is a way to specify the
> active window by mouse click? When I click device 3, device 3 becomes
> active (shown on device header), and when I click device 4, device 4
> becomes active, so on....

No, there's nothing built in to do that, though you could probably write something using the tcltk package to do it.

The logic is that being active means being the target of plot output, and essentially all plot output comes from executed commands, not from mouse clicks. Since you're executing commands already, why not put in one more?

Duncan Murdoch mailing list PLEASE do read the posting guide! Received on Thu Jul 28 22:10:53 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:34:06 EST