diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-10-30 16:10:37 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-10-30 16:10:37 +0000 |
| commit | ea2b414845ed8eb1445c9ab4fe1a790eef79ac1f (patch) | |
| tree | 26793c42d7379395785d4e5197de3d0aa7bf2bc0 | |
| parent | c18d7d5070519d2d2b174085b0e942c5110e0556 (diff) | |
Added documentation for Fl_Tabs resizable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Tabs.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 95f0384b8..7aed07486 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -405,13 +405,17 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) { Creates a new Fl_Tabs widget using the given position, size, and label string. The default boxtype is FL_THIN_UP_BOX. - <P>Use add(Fl_Widget - *) to add each child, which are usually + Use add(Fl_Widget*) to add each child, which are usually Fl_Group widgets. The children should be sized to stay away from the top or bottom edge of the Fl_Tabs widget, which is where the tabs will be drawn. - <P>The destructor <I>also deletes all the children</I>. This + All children of Fl_Tab should have the same size and exactly fit on top of + each other. They should only leave space above or below where that tabs will + go, but not on the sides. If the first child of Fl_Tab is set to + "resizable()", the riders will not resize when the tabs are resized. + + The destructor <I>also deletes all the children</I>. This allows a whole tree to be deleted at once, without having to keep a pointer to all the children in the user code. A kludge has been done so the Fl_Tabs and all of its children |
