Contents Up Previous Next

wxTabControl

You will rarely need to use this class directly.

Derived from

wxObject

Include files

<wx/tab.h>

See also

Tab classes overview

Members

wxTabControl::wxTabControl
wxTabControl::GetColPosition
wxTabControl::GetFont
wxTabControl::GetHeight
wxTabControl::GetId
wxTabControl::GetLabel
wxTabControl::GetRowPosition
wxTabControl::GetSelected
wxTabControl::GetWidth
wxTabControl::GetX
wxTabControl::GetY
wxTabControl::HitTest
wxTabControl::OnDraw
wxTabControl::SetColPosition
wxTabControl::SetFont
wxTabControl::SetId
wxTabControl::SetLabel
wxTabControl::SetPosition
wxTabControl::SetRowPosition
wxTabControl::SetSelected
wxTabControl::SetSize


wxTabControl::wxTabControl

void wxTabControl(wxTabView *view = NULL)

Constructor.


wxTabControl::GetColPosition

int GetColPosition()

Returns the position of the tab in the tab column.


wxTabControl::GetFont

wxFont * GetFont()

Returns the font to be used for this tab.


wxTabControl::GetHeight

int GetHeight()

Returns the tab height.


wxTabControl::GetId

int GetId()

Returns the tab identifier.


wxTabControl::GetLabel

wxString GetLabel()

Returns the tab label.


wxTabControl::GetRowPosition

int GetRowPosition()

Returns the position of the tab in the layer or row.


wxTabControl::GetSelected

bool GetSelected()

Returns the selected flag.


wxTabControl::GetWidth

int GetWidth()

Returns the tab width.


wxTabControl::GetX

int GetX()

Returns the x offset from the top-left of the view area.


wxTabControl::GetY

int GetY()

Returns the y offset from the top-left of the view area.


wxTabControl::HitTest

bool HitTest(int x, int y)

Returns TRUE if the point x, y is within the tab area.


wxTabControl::OnDraw

void OnDraw(wxDC& dc, bool lastInRow)

Draws the tab control on the given device context.


wxTabControl::SetColPosition

void SetColPosition(int pos)

Sets the position in the column.


wxTabControl::SetFont

void SetFont(wxFont *font)

Sets the font to be used for this tab.


wxTabControl::SetId

void SetId(int id)

Sets the tab identifier.


wxTabControl::SetLabel

void SetLabel(const wxString& str)

Sets the label for the tab.


wxTabControl::SetPosition

void SetPosition(int x, int y)

Sets the x and y offsets for this tab, measured from the top-left of the view area.


wxTabControl::SetRowPosition

void SetRowPosition(int pos)

Sets the position on the layer (row).


wxTabControl::SetSelected

void SetSelected(bool selected)

Sets the selection flag for this tab (does not set the current tab for the view; use wxTabView::SetSelectedTab for that).


wxTabControl::SetSize

void SetSize(int width, int height)

Sets the width and height for this tab.