Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXTabBar Class Reference

The tab bar layout manager arranges tab items side by side, and raises the active tab item above the neighboring tab items. More...

#include <FXTabBar.h>

Inheritance diagram for FX::FXTabBar:

FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXTabBook List of all members.

Public Types

enum  {
  ID_OPEN_ITEM = FXPacker::ID_LAST,
  ID_OPEN_FIRST,
  ID_OPEN_SECOND,
  ID_OPEN_THIRD,
  ID_OPEN_FOURTH,
  ID_OPEN_FIFTH,
  ID_OPEN_SIXTH,
  ID_OPEN_SEVENTH,
  ID_OPEN_EIGHTH,
  ID_OPEN_NINETH,
  ID_OPEN_TENTH,
  ID_OPEN_LAST = ID_OPEN_FIRST+100,
  ID_LAST
}

Public Member Functions

 FXTabBar (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TABBOOK_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_SPACING, FXint pr=DEFAULT_SPACING, FXint pt=DEFAULT_SPACING, FXint pb=DEFAULT_SPACING)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void layout ()
virtual void setCurrent (FXint panel, FXbool notify=FALSE)
FXint getCurrent () const
FXuint getTabStyle () const
void setTabStyle (FXuint style)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)

Detailed Description

The tab bar layout manager arranges tab items side by side, and raises the active tab item above the neighboring tab items.

In a the horizontal arrangement, the tab bar can have the tab items on the top or on the bottom. In the vertical arrangement, the tabs can be on the left or on the right.

See also:


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_OPEN_ITEM  Sent from one of the FXTabItems.
ID_OPEN_FIRST  Switch to panel ID_OPEN_FIRST+i.


Constructor & Destructor Documentation

FX::FXTabBar::FXTabBar FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = TABBOOK_NORMAL,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_SPACING,
FXint  pr = DEFAULT_SPACING,
FXint  pt = DEFAULT_SPACING,
FXint  pb = DEFAULT_SPACING
 

Construct a tab bar.


Member Function Documentation

virtual FXint FX::FXTabBar::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXPacker.

Reimplemented in FX::FXTabBook.

virtual FXint FX::FXTabBar::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXPacker.

Reimplemented in FX::FXTabBook.

virtual void FX::FXTabBar::layout  )  [virtual]
 

Perform layout.

Reimplemented from FX::FXPacker.

Reimplemented in FX::FXTabBook.

virtual void FX::FXTabBar::setCurrent FXint  panel,
FXbool  notify = FALSE
[virtual]
 

Change currently active tab item; this raises the active tab item slightly above the neighboring tab items.

FXint FX::FXTabBar::getCurrent  )  const [inline]
 

Return the currently active tab item.

FXuint FX::FXTabBar::getTabStyle  )  const
 

Return tab bar style.

void FX::FXTabBar::setTabStyle FXuint  style  ) 
 

Change tab tab style.

virtual void FX::FXTabBar::save FXStream store  )  const [virtual]
 

Save to stream.

Reimplemented from FX::FXPacker.

virtual void FX::FXTabBar::load FXStream store  )  [virtual]
 

Load from stream.

Reimplemented from FX::FXPacker.

Copyright © 1997-2004 Jeroen van der Zijp