On Sat, Jan 26, 2008 at 10:36 AM,  <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  How can a children widget knows which is its "super parent" (usually the 
> main window) ?
>  In one of my apps, in order to send message to the "super parent", I do 
> something like this:
>
>  parent()->parent()->handle(MESSAGE);
>
>  It works but I'm not sure if it's the proper way to do that.
>  Is there a function or a more correct way for that ?
>
>  Thanks
>  _______________________________________________
>  fltk mailing list
>  [email protected]
>  http://lists.easysw.com/mailman/listinfo/fltk
>

There is also the window() method in all Widgets which returns a
pointer to the Window in which the Widget is.

Tobias

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

Reply via email to