On 09.11.2011 14:29, Steinhoff wrote:

> I have to do some temporarily GUI operations in a real-time application.
> That means I create a FLTK window for the GUI related operation and want to 
> close it completely if all GUI work has been done ... without terminating the 
> RT app.
>
> I'm using FLTK 1.1.10 .... after terminating the main window by termination 
> the run() routine the main window doesn't disappear.

How do you terminate the run() routine ?

> It's only removed from the screen if also the RT app terminates.

Usually the Fl::run() loop is only terminated if/when all windows
are closed. Do you say that you try to close the window, but it
stays on the screen? If yes, how do you close it? With the user
interface, by using the window's close button, or by calling hide()
from the program?

> How can I fix that bug ?

Which OS do you use? Sounds maybe like an X problem we discussed
recently. If it is U*IX and you use an X server, then try to add
two or three calls to Fl::wait(0.5) after the Fl::run() loop.
Does this remove the window from the screen?

Note that this is only a test. There's probably a better way if
you can give us more context of what you're doing exactly.

Albrecht
_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to