Hi,

I'm beginning to port my code over to version 3.0 - slowly as it's still 
experimental at the moment.

What's sticking at the moment is the order of calling show() seems to be 
different and is causing a bit of a problem.

In the fltk 2 version of the code I do:

pWindow = CreateMainWindow();
pWindow->Begin();

// build some other UI elements (A tile group containing a GLwindow)
CreateInterface();

pWindow->End();
pWindow->Resizable(theTileGroup);
pWindow->Show();

// create the GL context
pGLWindow->MakeCurrent();

This works fine under fltk 2

Under 3.0 I see that the win32 context stuff set at pWindow->i internally isn't 
created until pWindow->show() is called, and the GLWindow will crash.

So for the fltk 3 build I have to call pWindow->show() before the GLWindow is 
created - but this results in the outer pWindow not being resizable anymore...

Any help appreciated.

Thanks







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

Reply via email to