OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TTabbedBase implements a tabbed window, designed to be mixed in with TWindow derived. More...
#include <owl/tabbed.h>
Public Types | |
enum | TTabPosition { tpLeft = alLeft , tpRight = alRight , tpBottom = alBottom , tpTop = alTop } |
Public Types inherited from owl::TEventHandler | |
typedef bool(* | TEqualOperator) (const TGenericTableEntry &, const TEventInfo &) |
Public Member Functions | |
TTabbedBase (TWindow *self, int x, int y, int w, int h, TTabPosition=tpBottom, TNoteTab *tab=0) | |
TTabbedBase (TWindow *self, TTabPosition=tpBottom, TNoteTab *tab=0) | |
int | Add (TWindow &wnd, LPCTSTR titles=0) |
Add a new tab page. | |
int | Add (TWindow &wnd, const tstring &titles) |
void | SetupPages () |
TNoteTab * | GetTabControl () |
TWindow * | GetPage (int index=-1) |
void | SelectPage (int index, bool shouldFocusPage=true) |
Hides the current page and shows the page at the given index. | |
Public Member Functions inherited from owl::TEventHandler | |
virtual bool | Find (TEventInfo &info, TEqualOperator op=0) |
Searches the list of response table entries looking for a match. | |
TResult | Dispatch (TEventInfo &info, TParam1, TParam2=0) |
Takes the message data from TEventInfo's Msg data member and dispatches it to the correct event-handling function. | |
TResult | DispatchMsg (TMsgId, uint id, TParam1, TParam2) |
Search for the event given the message and it and dispatch to the event handler if found. | |
Protected Member Functions | |
void | EvTabControlSelChange (TNotify &tcn) |
bool | EvTabControlSelChanging (TNotify &tcn) |
virtual void | AdjustPage (TWindow &page) |
DECLARE_RESPONSE_TABLE (TTabbedBase) | |
Protected Member Functions inherited from owl::TEventHandler | |
bool | SearchEntries (const TGenericTableEntry *entries, TEventInfo &info, TEqualOperator op) |
Low-level response table search function. | |
Protected Attributes | |
TNoteTab * | NoteTab |
TTabPosition | Position |
DECLARE_CASTABLE | |
TTabbedBase implements a tabbed window, designed to be mixed in with TWindow derived.
Example:
owl::TTabbedBase::TTabbedBase | ( | TWindow * | self, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
TTabPosition | pos = tpBottom, | ||
TNoteTab * | tab = 0 ) |
Definition at line 59 of file tabbed.cpp.
owl::TTabbedBase::TTabbedBase | ( | TWindow * | self, |
TTabPosition | pos = tpBottom, | ||
TNoteTab * | tab = 0 ) |
Definition at line 68 of file tabbed.cpp.
References NoteTab.
Add a new tab page.
Definition at line 79 of file tabbed.cpp.
References _T, owl::TNoteTab::Add(), AdjustPage(), owl::TWindow::GetHandle(), NoteTab, Position, and TYPESAFE_DOWNCAST.
Definition at line 111 of file tabbed.cpp.
References owl::TWindow::GetParentO(), owl::TWindow::GetWindowRect(), NoteTab, Position, tpBottom, tpLeft, tpRight, and tpTop.
|
protected |
Definition at line 209 of file tabbed.cpp.
References GetPage().
Definition at line 215 of file tabbed.cpp.
References GetPage().
Definition at line 180 of file tabbed.cpp.
References owl::TNoteTabItem::ClientData, owl::TNoteTab::GetItem(), owl::TNoteTab::GetSel(), and NoteTab.
Hides the current page and shows the page at the given index.
Does nothing if the page at the given index is already selected. Note that this function does not send any notifications.
Definition at line 195 of file tabbed.cpp.
References GetPage(), owl::TNoteTab::GetSel(), NoteTab, PRECONDITION, and owl::TNoteTab::SetSel().
void owl::TTabbedBase::SetupPages | ( | ) |
Definition at line 144 of file tabbed.cpp.
References AdjustPage(), owl::TNoteTabItem::ClientData, owl::TNoteTab::GetCount(), owl::TNoteTab::GetItem(), owl::TNoteTab::GetSel(), owl::TNoteTabItem::Label, MAX_PATH, NoteTab, and owl::TNoteTab::SetItem().
|
protected |