On Wednesday 15 April 2009 21:22:22 andrei_c wrote:
> button->parent()->child(2);

button is the button widget;

button->parent() is the window where button is placed, it's a way to refer
to the "parent" window from "child" button.

button->parent()->child(2) is the child widget (child of window),
created as second widget.

In the original example button->parent()->child(1) is the button itself.

In your application you need to change the child reference,
try to use "children" 1, 2, 3 instead of 2,3,4.

HTH
Andrea

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

Reply via email to