summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2009-04-12 09:40:59 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2009-04-12 09:40:59 +0000
commitd0561193107497f46812e8d8d88ed867eca1136e (patch)
treef9296445658e4669358ee758a2a1ae27ab0fb0fc
parentd1593df45be79099595e36bff9960169f6ad4b8c (diff)
Reworded description of calling the virtual draw() method for embedded
widgets in FL/Fl_Widget.H, as discussed in fltk.development, with an additional hint that draw() is virtual. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Widget.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H
index 9ee3c0830..724e00e00 100644
--- a/FL/Fl_Widget.H
+++ b/FL/Fl_Widget.H
@@ -181,8 +181,8 @@ public:
Override this function to draw your own widgets.
If you ever need to call another widget's draw method <I>from within your
- own draw method</I>, e.g. for an embedded scrollbar, you must upcast the
- embedded widget's pointer to Fl_Widget* and call the virtual draw() method.
+ own draw() method</I>, e.g. for an embedded scrollbar, you can do it
+ (because draw() is virtual) like this:
\code
Fl_Widget *s = &scroll; // scroll is an embedded Fl_Scrollbar