From jfox at mcmaster.ca  Wed Aug 13 09:52:21 2003
From: jfox at mcmaster.ca (John Fox)
Date: Wed Aug 13 14:50:36 2003
Subject: [Rd] RAqua
In-Reply-To: <x2lltyca0t.fsf@biostat.ku.dk>
References: <063284D8-CD38-11D7-9BB5-000393BB6D36@stat.ucla.edu>
	<063284D8-CD38-11D7-9BB5-000393BB6D36@stat.ucla.edu>
Message-ID: <5.1.0.14.2.20030813084623.01f7e830@127.0.0.1>

Dear Jan and Peter,

Given Peter's explanation, setting options(Rcmdr=list(tkwait=TRUE)) before 
loading the Rcmdr package might allow the Commander to work (although it 
will disable the R command prompt while the Commander window is open). Not 
a good solution, of course.

Regards,
  John

At 09:05 AM 8/13/2003 +0200, Peter Dalgaard BSA wrote:
>Jan de Leeuw <deleeuw@stat.ucla.edu> writes:
>
> > 5. Interaction with Tcl/Tk is still problematic. For instance, Tcl/Tk
> > takes over the menubar, and if you don't use tkStartGUI() the
> > tk windows don't respond to mouse clicks. For instance, try
> > using Rcmdr. Also if you use tkStartGUI(), and AquaTk has
> > taken over, it creates windows (for instance for downloading CRAN
> > packages) without scrollbars. This is important, because Tcl/Tk
> > is still the only possible way of building GUI applications
> > from RAqua.
>
>tkStartGUI is just a proof of concept and many parts of it are
>sketchy. It doesn't create scrollbars on unix either, but you can
>scroll with the middle button (now how do you do that with a single
>button mouse?). It would be easy to add the scrollbar, I just don't
>think this is due to bad interactions with Aqua in particular.
>
>Starting yet another console to get Tk windows to respond is just
>wrong. Presumably, the case is that nothing is running the Tk event
>loop and that tkStartGUI executes a "wait variable" which runs the
>loop by itself. It should be fairly easy to wedge a tk event handler
>into the Aqua loop (disclaimer: I don't have access to a Mac, I'm just
>assuming that Aqua works like other GUI toolkits and allows you to
>define idle handlers and the like).
>
>--
>    O__  ---- Peter Dalgaard             Blegdamsvej 3
>   c/ /'_ --- Dept. of Biostatistics     2200 Cph. N
>  (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
>~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
>
>______________________________________________
>R-devel@stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox@mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox


[Rd] RAqua
John Fox