Hi all,
in other words: is it possible to use FLTK in OSX inside a system generated
window?
bool open(void*ptr) { // ptr is an opaque OS dependent window ID
AEffEditor::open(ptr);
window = new fltk::Window(boundaries.right,boundaries.bottom);
window->parent(0);
window->begin();
{
fltk::Widget* widget = new
fltk::Widget(boundaries.left,boundaries.top,boundaries.right,boundaries.bottom);
// do some widgetery here
}
window->end();
window->set_override();
window->show();
#ifdef __MACH__
// what should go here???
//::SetWindowGroup(xid(window),::GetWindowGroup((WindowRef)ptr));??? // his
does work...
#endif//__MACH__
#ifdef WIN32
HWND hWnd = (HWND)xid(window);
::SetWindowLong(hWnd,
GWL_STYLE,(::GetWindowLong(hWnd,GWL_STYLE)&~WS_POPUP)|WS_CHILD);
::SetParent(hWnd,(HWND)ptr);
::SetWindowPos(hWnd,0,boundaries.left,boundaries.top,boundaries.right,boundaries.bottom,SWP_NOSIZE|SWP_SHOWWINDOW|SWP_NOACTIVATE);
#endif//WIN32
return true;
}
Thanks for any help, or hints where to look,
best regards,
Hagen.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk