> My intent is to have a button bar always in front of an 
> openGL canvas so
> I made the buttons a separate non-modal window.  As I 
> understand it this
> means it should always be above the normal window but allow the normal
> window to continue accepting events.  This seemed to work but now
> whenever I click the normal window it pops in front of the 
> button bar no
> matter what the modal setting.  
> 
> I have a separate non-modal window used elsewhere in the 
> program that I 
> try using here as well and it works as intended(always on 
> top/both windows active).  
> When I query non_modal() for the button bar it returns the 
> value 32 and 
> returns 0 if I remove the non_modal setting so I believe the 
> window has 
> the correct settings.   
> 
> The only difference I can see in how I am using fltk from 
> most examples
> I have seen is that I am currently instantiating all windows  
> at startup
> and either hiding or showing them depending on the state.  
> When doing it
> this way the showing order is important, calling show() on 
> windows from
> back to front(which I am doing). 

I see Matt and Greg have already pitched in, but here's an extra
thought, in case it helps...

It may be a problem with which regular window the non-modal window is
parented too.

A while back, on OSX with fltk-1.1.something I encountered a similar
sounding issue with non-modal windows, and it turned out that the issue
was something to do with which "regular" window was "current" when the
non-modal window was created.

What I ended up doing was (hacky pseudo-code follows...)

    ...create main_win then...
    main_win->show();

    ...create other regular windows...

    ...then...
    main_win->show();
    ...create a non-modal window...
    main_win->show();
    ...create another non-modal window...
    main_win->show();
    ...create another non-modal window...
    ...etc...

Note all the "redundant" main_win->show(); calls in there - they "fixed"
my window ordering issues.

This might help you, too - though probably not, since window ordering
under OSX is a bit weird at the best of times so this is possibly some
totally other problem!

Cheers,
-- 
Ian



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to