From 09daf20b81cdae78772f07c0af22a571d7cc73eb Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 29 Nov 2001 19:24:00 +0000 Subject: Documentation updates galore (up to chapter 7, still need to do chapter 8 and 9, tweek the appendices, and recapture the screenshots...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Tabs.html | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'documentation/Fl_Tabs.html') diff --git a/documentation/Fl_Tabs.html b/documentation/Fl_Tabs.html index 69f49f0b8..4e1cfde4f 100644 --- a/documentation/Fl_Tabs.html +++ b/documentation/Fl_Tabs.html @@ -17,26 +17,26 @@

Description

- The Fl_Tabs widget is the "file card tabs" interface that -allows you to put lots and lots of buttons and switches in a panel, as -popularized by many toolkits. + The Fl_Tabs widget is the "file card tabs" interface that +allows you to put lots and lots of buttons and switches in a panel, as +popularized by many toolkits.

Fl_Tabs widget.

Clicking the tab makes a child visible() (by calling show() on it) and all other children are invisible (by calling hide() on them). Usually the children are -Fl_Group widgets containing several widgets +Fl_Group widgets containing several widgets themselves.

-

Each child makes a card, and it's label() is printed on the -card tab (including the label font and style). The color of that child -is used to color the card as well. Currently this only draws nicely if -you set box() to the -default FL_THIN_UP_BOX or to FL_FLAT_BOX, which gets +

Each child makes a card, and it's label() is printed on the +card tab (including the label font and style). The color of that child +is used to color the card as well. Currently this only draws nicely if +you set box() to the +default FL_THIN_UP_BOX or to FL_FLAT_BOX, which gets rid of the edges drawn on the sides and bottom.

-

The size of the tabs is controlled by the bounding box of the -children (there should be some space between the children and the edge -of the Fl_Tabs), and the tabs may be placed "inverted" on the -bottom, this is determined by which gap is larger. It is easiest to -lay this out in fluid, using the fluid browser to select each child +

The size of the tabs is controlled by the bounding box of the +children (there should be some space between the children and the edge +of the Fl_Tabs), and the tabs may be placed "inverted" on the +bottom, this is determined by which gap is larger. It is easiest to +lay this out in fluid, using the fluid browser to select each child group and resize them until the tabs look the way you want them to.

Methods

-

Fl_Tabs::Fl_Tabs(int x, int y, int w, int h, +

Fl_Tabs::Fl_Tabs(int x, int y, int w, int h, const char *label = 0)

- Creates a new Fl_Tabs widget using the given position, size, -and label string. The default boxtype is FL_THIN_UP_BOX. + Creates a new Fl_Tabs widget using the given position, size, +and label string. The default boxtype is FL_THIN_UP_BOX.

Use add(Fl_Widget *) - to add each child (which is probably itself a Fl_Group). The -children should be sized to stay away from the top or bottom edge of + to add each child (which is probably itself a Fl_Group). The +children should be sized to stay away from the top or bottom edge of the Fl_Tabs, which is where the tabs are drawn.

virtual Fl_Tabs::~Fl_Tabs()

- The destructor also deletes all the children. This allows a -whole tree to be deleted at once, without having to keep a pointer to + The destructor also deletes all the children. 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 it's children can be automatic (local) -variables, but you must declare the Fl_Tabsfirst, so -that it is destroyed last. +Fl_Tabs and all of it's children can be automatic (local) +variables, but you must declare the Fl_Tabsfirst, so +that it is destroyed last.

Fl_Widget* Fl_Tabs::value() const
int Fl_Tabs::value(Fl_Widget*)

Gets or sets the currently visible widget/tab. -- cgit v1.2.3