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

long onPaint (FXObject *, FXSelector, void *)
long onFocusNext (FXObject *, FXSelector, void *)
long onFocusPrev (FXObject *, FXSelector, void *)
long onFocusUp (FXObject *, FXSelector, void *)
long onFocusDown (FXObject *, FXSelector, void *)
long onFocusLeft (FXObject *, FXSelector, void *)
long onFocusRight (FXObject *, FXSelector, void *)
long onCmdOpenItem (FXObject *, FXSelector, void *)
long onCmdSetValue (FXObject *, FXSelector, void *)
long onCmdSetIntValue (FXObject *, FXSelector, void *)
long onCmdGetIntValue (FXObject *, FXSelector, void *)
long onCmdOpen (FXObject *, FXSelector, void *)
long onUpdOpen (FXObject *, FXSelector, void *)
 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 layout ()
 Perform layout.
virtual void setCurrent (FXint panel, FXbool notify=false)
 Change currently active tab item; this raises the active tab item slightly above the neighboring tab items.
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.

Protected Attributes

FXint current
FXint shift

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. When one of the tab items is pressed, the tab bar's setCurrent() is called with notify=true. Thus causes the tab bar to send a SEL_COMMAND message to its target, with the currently active tab index in the void pointer.


Member Enumeration Documentation

anonymous enum
Enumerator:
ID_OPEN_FIRST 

Sent from one of the FXTabItems.

ID_OPEN_SECOND 

Switch to panel ID_OPEN_FIRST+i.


Member Function Documentation

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.

If notify=true then the tab bar will also send a SEL_COMMAND message to its target, containing the currently active tab index in the void pointer.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp