Shengzhe Wu
2005-Jul-28 11:26 UTC
[R] Help: how to specify the current active window by mouse
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.... Thank you, Shengzhe
Duncan Murdoch
2005-Jul-28 11:58 UTC
[R] Help: how to specify the current active window by mouse
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