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

FX::FXTabBar Class Reference

#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 Methods

 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.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

virtual void setCurrent (FXint panel, FXbool notify=FALSE)
FXint getCurrent () const
 Return the currently active tab item.

FXuint getTabStyle () const
 Return tab bar style.

void setTabStyle (FXuint style)
 Change tab tab style.

virtual void save (FXStream &store) const
 Save to stream.

virtual void load (FXStream &store)
 Load from stream.


Detailed Description

The tab bar layout manager arranges tab items side by side, and raises the active tab item above the neighboring tab items. The tab bar can be have the tab items on the top or bottom for horizontal arrangement, or on the left or right for vertical arrangement.

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.


Member Function Documentation

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.