s-news
[Top] [All Lists]

Re: Getting GUI Dialog box to dissapear before function ends

To: Greg Snow <snow@fisher.byu.edu>
Subject: Re: Getting GUI Dialog box to dissapear before function ends
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
Date: Fri, 15 Dec 2000 20:11:09 +0000 (GMT Standard Time)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <Pine.GSO.4.21.0012151136090.9584-100000@fisher.byu.edu>
On Fri, 15 Dec 2000, Greg Snow wrote:

> 
> I am using S-PLUS 2000 release 3. 
> 
> I have a function that does some interactive graphics (produces a plot
> then waits for me to click on the plot to add some lines).  It works fine
> as is.  I also created a GUI interface (Menu item and dialog box) to go
> with it.  Everything works fine except that when I run the function via
> the dialog, the dialog box stays on top while my graph is waiting to be
> clicked on (obscuring the graph, not able to move the box out of the
> way).  Once I have finished with the graph, then the dialog box
> dissapears.
> 
> Does anybody have any ideas of what I can do to make the dialog box
> disappear (or at least not be always on top) before running the function?

Call guiLocator(0) in your function: that tops the graphics window.

-- 
Brian D. Ripley,                  ripley@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


<Prev in Thread] Current Thread [Next in Thread>