OWLNext 6.32
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
owl::TTabbedBase Class Reference

Example: More...

#include <tabbed.h>

Inheritance diagram for owl::TTabbedBase:
owl::TEventHandler owl::TTabbedWindow owl::TTabbedView

List of all members.

Public Types

enum  TTabPosition { tpLeft = alLeft, tpRight = alRight, tpBottom = alBottom, tpTop = alTop }

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)
int Add (TWindow &wnd, const tstring &titles)
void SetupPages ()
TNoteTabGetTabControl ()
TWindowGetPage (int index=-1)

Protected Member Functions

void EvTabControlSelChange (TNotify &tcn)
bool EvTabControlSelChanging (TNotify &tcn)
virtual void AdjustPage (TWindow &page)
 DECLARE_RESPONSE_TABLE (TTabbedBase)

Protected Attributes

TNoteTabNoteTab
TTabPosition Position
 DECLARE_CASTABLE

Detailed Description

Example:

TTabbedBase implements a tabbed window, designed to be mixed in with TWindow derived.

   class TTabbedDialog : public TDialog, public TTabbedBase{
     public:
       TTabbedDialog(...);
        SetupWindow();
    };
   TTabbedDialog::TTabbedDialog(...)
   {
     Add(new TDialog(this, IDD_DLG1));
     Add(new TDialog(this, IDD_DLG2));
     Add(new TDialog(this, IDD_DLG3));
     GetTabControl()->SetSel(0);
   }
   TTabbedDialog::SetupWindow()
   {
     TDialog::SetupWindow();
     SetupPages();
   }

Member Function Documentation

int owl::TTabbedBase::Add ( TWindow wnd,
LPCTSTR  titles = 0 
)

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