[R] Floating windows in TCLTK
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Nov 14 14:00:37 CET 2001
On Wed, 14 Nov 2001, David Middleton wrote:
> Simon.Gatehouse at csiro.au wrote:
> > I'm trying, without any success, to get a simple TCLTK window to remain
> > floating on top of the RGui and RConsol windows when the later have focus.
> > I'm running R in Windows 2000
> I suspect that this is a windows issue rather than anything specific to
> Tk/Tcl in R. Under windows NT, and presumably win 2000, you can download a
> utility from microsoft called TweakUI which allows you to change the
> behaviour of windows. If you choose to have the focus following the mouse,
> and no raising of windows with the focus, you should get the behaviour you
Unfortunately not (I use TweakUI to have focus following the mouse: it
doesn't raise focussed windows for me). This works perfectly with
multiple R windows in --sdi mode, *except* with package tcltk.
It seems Tcl/Tk on Windows uses some hidden windows to manage its event
queue, with the result that all visible windows lose focus, and you have
to click on one of them. So I think it is a Tcl/Tk issue.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help