Harvey Chapman wrote:

> This wouldn't work for me because I need to keep calling Fl::run(). My 
> program takes commands from a pipe (in a second thread) which tells it 
> to show/hide and what to display. If I don't call Fl::run() then the 
> pipe thread won't be able to tell the main thread to show itself.
> 
> So, the logic is:
> 
> - Create main window
> - Hide it
> - Create pipe thread
> - Pipe thread Fl::awake()'s the main thread
>   - perhaps show/hide the main window
>   - display what we're told to via the pipe
> - repeat until told to quit

Ah, now I understand ...

> For now, my solution is the while(!quit) version of FL::run().
> 
> while (!quit) Fl::wait(1e20);

I think that this is the only useful way to go, then.

Another _hack_ would be to create a (maybe minimal, 1 by 1 px.) window, 
position it outside any visible screen dimensions, and then show() this 
window and call Fl::run(). Ought to work, but it's a hack.

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to