[..]
>
> The intention of this example was to
> (a) show the (implicit, type-safe, up-) cast to Fl_Widget
> (b) do it without an explicit cast operator to show type safety
>
> Maybe we should have two examples.
>
> Other suggestions ?
>
Apparently the terminology is more ambiguous than I'd imagined.
In any case, the example is perfect, so perhaps the idea is
to avoid verbiage that might be confusing. How about something
like this?
If you ever need to call another widget's draw method from within your own draw
method, e.g. for an embedded scrollbar, you can do it
like this:
Fl_Widget *s = &scroll; // scroll is an embedded Fl_Scrollbar
s->draw(); // calls Fl_Scrollbar::draw()
Best,
Stan
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev