There's something really strange which happens with a Menu Item created with 
FLUID 1.1.9. I coded the callback function in a way that, when the callback 
function executes, a fl_choice() window should appear and "block" the program 
until the user presses the preferred button, but *sometimes* for some unknown 
reasons this window is created and immediately destroyed (i can see a flash 
corresponding to the window being created and destroyed in a moment) and the 
execution proceeds as if fl_choice() had run properly and returned a value. 
However, if i add a second fl_choice(), this second window appear as expected 
and the program also blocks.

To debug the problem, I tried to substitute the first fl_choice() with another 
function in which a Fl_Window is created with some associated code. But again, 
it looks like no matter what widget i create, the widget in that funcion is 
created and destroyed without blocking and its code is executed. While, again, 
a second widget work as expected.

It's strange, because the problem happens: 1. sometimes, in an unpredictable 
way and 2. with only one Menu Item (while the other Menu items executing a 
similar callback work fine).

Do you have any idea?

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

Reply via email to