I'm not supposed to control this SetCurrent function : it is called by the graphicsWindow when it wants to draw a frame()
But indeed, if i were to use multiple osgViewer::Viewer for example instead of a single CompositeViewer I could process this event to update the "Current Viewer"... Yet I think I heard somewhere it's not a good idea to use multiple asynchronous Viewer object in a single application.... am I wrong ? regards. 2007/10/25, Andreas Goebel <[EMAIL PROTECTED]>: > > Hi, > > why don“t you just call SetCurrent when the corresponding tab is shown? > > You could process the *EVT_NOTEBOOK_PAGE_CHANGED event and then make the > corresponding wxGLCanvas that lies in the notebook current. > > Regards, > > Andreas > * > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

