Hi, I am having very strange behavior on MacOSX with non-modal windows, 
something very similar to what is described here:

http://www.fltk.org/newsgroups.php?gfltk.general+v:9340

Basically, non-modal windows (which are essential as toolbox windows and such) 
don't act nice. For example, I have a "main window" which is not non-modal nor 
modal, and during the course of the program, non-modal windows are opened as 
toolboxes, preference windows and that sort of thing. They are non-modal 
because they need to stay on top, but the main window must still be capable of 
receiving events.

This causes some problems on macOSX (but not on Windows or Linux):

1. The windows seem to be fighting over the focus, because I can't type into 
text boxes on the non-modal windows.

I can click on a text box, the I beam appears in the correct text position for 
a brief moment and then disappears.

Sometimes it kind of works (can type into one, textbox, but when I click on 
another one the problem appears), and sometimes if I keep the mouse clicked on 
the textbox and type it works. It also apears that the windows are fighting for 
focus since they both have the close, minimize and maximize buttons colored. On 
the text editor demo in particular, I noticed that the "replace" dialog which 
is non-modal, stays on top, but the main window can be clicked for focus... the 
replace dialog remains on top, yet it becomes "unfocused" and the close button 
and other window decorations "dim out".

When the dialog windows are set to normal (neither modal nor non-modal) the 
text boxes work as expected, I can type into them normally and the window "dims 
out" when focus is changed to another window (although it gets lost in the 
back, which is useless).

2. I don't know if this is related, but the main window has an GL_Window 
dreived widget, which handles FL_MOVE events to detect the mouse position on 
the window, it works fine on linux and windows, but on mac it does not. It kind 
of works when one of the non-modal windows is showing... very strange...

Any ideas or comments are desperately appreciated.

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

Reply via email to