hi!

-> FLTK: 1.1.9

I have my base-window and want to show a second window for 
popup-messages (yes, i know there are some built-in popups in fltk, but 
i would like to use my own version :-) )

now, if i set this second window as a child of the base-window and set 
it also modal then i have the problem that i can't destroy it with my 
"OK" button (which calls a callback), because i have kind of a deadlock 
-> because the modal deactivated the mainwindow, but the popup is its 
child and now the ok-button doesn't work (neither its callback) :-) do 
you see what I mean?

sure, i can popup the message in a window which isn't a child of the 
base-window. but then i have another problem: i have a touch-keyboard 
(nxkbd -> nano-x) and as soon i delete the popup-window and i switch 
back to the base-window, i can't use the keyboard anymore (although the 
base window has still focus (mouse works...) )

so, the easiest solution would be to have a modal popup which is a child 
of the base-window, but without the deadlock (i know that there is the 
set_non_modal()-function, but i can't use this one, because then i can 
still mess arround on my base-window during the popup, an this i bad :-( 
      )

if this doesn't work: does anyone know, why the base-window has the 
focus and gets the mouse events, but not the keyboard events anymore?

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

Reply via email to