On 03.11.2011 18:24, David wrote:
>>
>> Fl_Window *win=new Fl_Window(x,y,w,h);
>> Fl_Box *box=new Fl_Box(x,y,w,h,text);
>> win->show();
>>
>> (need it to show here without waiting too long)
>>
>> do lots of stuff that takes a long time and can't call wait()
>>
>> win->hide();
>>
>> (need it to go away here without waiting too long)
>>
>> delete win;
>>
>> (maybe do other stuff without the wait()).
>>
>>
>
> I got it good enough .. I do a loop of 10 calling fl::wait(0.001) after the 
> show and hide and it works.

Warning: that's not a proper solution. It is likely to fail if you
use it with a remote X server that needs more time to transmit
two or three messages over the net. Besides that, your GUI will
not be responsive to user actions during your long-running work.

Please see also my other reply.

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

Reply via email to