On 12 Sep 2009, at 22:28, Gary Hui Zhang wrote: >> That shouldn't be necessary. The Fl_Tabs widget does exactly that >> when >> you select a tab: it show()s its group and hides any other >> contained groups. > > This was my understanding but it doesn't appear to work, at least > on MacOSX.
One thing that I saw on a system a while back, that might be relevant: It could be on OpenGL driver "feature"... we had a build that was doing something like what you describe - a GL window that didn't hide when we hid the enclosing window. Same code on a a different machine *did* hide... seemed to be something to do with what graphic card was in use, and how the GL driver was handling its windows and stuff. Anyway, don't know if that's relevant or not. I guess what I'm saying is that *maybe* your code is correct and it's the GL driver that is playing up - can you test your code on a machine with a different make of graphics card, see if that is any better? I don't really recall any of the details though - I have a vague sense that part of the problem was that the outer window was an Fl_Double_Window, and that was "confusing" matters somewhat at the hardware level. Since then I always enclose GL windows in Fl_Single_Windows just to be on the safe side (although I use Fl_Double_Window for everything else, of course.) Again, might be relevant to your case - or not. So... can you produce a minimal compileable example that manifests the behaviour? We could maybe all try it on different systems, see what works where... _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

