DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
One more observation:
The proposed patch has the (IMHO minor) side effect, that you can drag the
window away from an open menu, when the fl_aler
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
I forgot to mention: I tested this patch on Windows, and it does what I
would expect: After closing the fl_alert() window, the menu stays open an
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
okay, so here is a patch proposal, based on Stan's code:
fltk/src> svn diff fl_ask.cxx
Index: fl_ask.cxx
===
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
Yes, probably we can just do that, however we should also document that
Fl::readqueue() is incompatible with Fl::grab()...
Link: http://www.flt
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
Thanks, Stan, this explains some of the effects, or maybe all.
I was just looking into Fl_Menu.cxx and saw that it uses Fl::grab(). At
line 503,
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
As an aid to understanding the problem, note that this is a workaround:
void alert_cb(void *)
{
Fl_Window* g = Fl::grab();
Fl::g
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
Tested with fltk-1.1 svn (r5940) on Windows and Linux.
Same effect on both.
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
_
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current
If a timer event (e.g. fl_add_timeout) starts a user interaction with
fl_message(), fl_alert() or maybe others, the program hangs completely (no
u