[R] Floating windows in TCLTK

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Nov 14 11:29:00 CET 2001

Simon.Gatehouse at csiro.au writes:

> Dear anybody dealing with TCLTK on R
> 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
> cannot find reference in the TCKTK documentation and fear that I'm missing
> something quite fundamental. 
> My objective is to make a simple button populated menu to invoke R
> functions. I wish the TCLTK menu to remain on top so that I can manually
> invoke a sequence of functions without restarting the TCLTK menu after each
> invocation. Some of the R functions used have screen interactions in the
> form of locator() and identify()
> Any tips or abbreviated code snippets would be very much appreciated.
> I'm running R in Windows 2000

This kind of thing is notoriously difficult to do on Windows. The
focused application wants pretty badly to be on top. However, a
toplevel Tk window generates an entry in the -whatsitsname- bar at the
bottom of the screen, so it seems that it would be fairly easy to get
your buttons back on top.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
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 mailing list