> > I'm running FLTK 1.19 on Mac OSX Leopard.
>
> FLTK 1.1.9
Oops ... I made this mistake again.
> > I'm having some trouble with tabs each with its own GL context. When I
> > switch from one tab to the other, the drawing from the GL context of the
> > previous tab does not disappear. It will only disappear after I click some
> > element in the current tab whose action includes an explicit call to the
> > hide() of the previous GL context.
> >
> > Anybody knows of a better way to handle this problem?
I figure that a natural way of remedying this is to add a callback to each tab
to execute the hide() explicitly. But it appears that the callback inserted
never gets called. Here is the actual code:
Fl_Tabs m_LayerUITabs {open
xywh {180 5 390 475} box PLASTIC_THIN_UP_BOX color 41
} {
Fl_Group m_ImageContrastTab {
label Contrast open selected
callback {this->DisplayImageContrastTab();}
xywh {180 25 390 455} labelsize 12
} { .... }
Note the callback for the tab (Fl_Group m_ImageContrastTab). That function
does not get called when I select the tab ...
Is this the correct behavior?
> I don't know if this is a GL specific problem (may be), but problems
> like this one often have a common cause that the groups that are
> contained in the tabs don't fill the tab group area completely (except
> the tab area itself). Please check, if this could be the case in your
> program.
Do you think the code above suffering from the problem you described?
> If this is not the case, can you provide a simple, but complete
> (compilable) example that shows the problem?
This will take a bit time and I will try to get to it. Thanks.
Gary
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk