On 17.06.2008, at 22:39, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>  
wrote:

> How can a widget reach it's top level parent (generaly the main  
> window) ?
> I know that way to proceed:
>
> while(pWidget->parent())  pWidget = pWidget->parent();
>
> Is there an other one ?


Yes, pWidget->window(); will walk up the hierarchy to the next higher  
Fl_Window. Be careful though, because Fl_Windows can be children of  
groups or other Fl_Windows (example: Fl_GL_Window).

Matthias

----
http://robowerk.com/


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

Reply via email to