|
Public Types |
| enum | { kPositionLeft = 0,
kPositionRight,
kPositionTop,
kPositionBottom
} |
| enum | {
kAlignCenter = 0,
kAlignLeft,
kAlignRight,
kAlignTop = kAlignLeft,
kAlignBottom = kAlignRight
} |
Public Member Functions |
| | CTabView (const CRect &size, CFrame *parent, CBitmap *tabBitmap, CBitmap *background=0, long tabPosition=kPositionTop, long style=0) |
| | CTabView (const CRect &size, CFrame *parent, const CRect &tabSize, CBitmap *background=0, long tabPosition=kPositionTop, long style=0) |
| virtual | ~CTabView () |
| virtual bool | addTab (CView *view, const char *name=0, CBitmap *tabBitmap=0) |
| virtual bool | removeTab (CView *view) |
| virtual bool | removeAllTabs () |
| virtual bool | selectTab (long index) |
| virtual CRect & | getTabViewSize (CRect &rect) const |
| virtual void | setTabFontStyle (const CFont &font, long fontSize=12, CColor selectedColor=kBlackCColor, CColor deselectedColor=kWhiteCColor) |
| | call this after the tabs are added. Tabs added after this call will have the default font style.
|
| virtual void | alignTabs (long alignment=kAlignCenter) |
| | call this after you have added all tabs
|
| virtual void | valueChanged (CDrawContext *pContext, CControl *pControl) |
Protected Member Functions |
| void | setCurrentChild (CTabChildView *childView) |
Protected Attributes |
| unsigned long | numberOfChilds |
| long | tabPosition |
| long | style |
| CRect | tabSize |
| CBitmap * | tabBitmap |
| CTabChildView * | firstChild |
| CTabChildView * | lastChild |
| CTabChildView * | currentChild |