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
|