![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXTabBar.h>
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) |
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.
See also:
anonymous enum |
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.
virtual FXint FX::FXTabBar::getDefaultWidth | ( | ) | [virtual] |
virtual FXint FX::FXTabBar::getDefaultHeight | ( | ) | [virtual] |
virtual void FX::FXTabBar::layout | ( | ) | [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.
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] |
virtual void FX::FXTabBar::load | ( | FXStream & | store | ) | [virtual] |
![]() |