Contents Up Previous Next

wxRemotelyScrolledTreeCtrl

wxRemotelyScrolledTreeCtrl This tree control disables its vertical scrollbar and catches scroll events passed by a scrolled window higher in the hierarchy. It also updates the scrolled window vertical scrollbar as appropriate. Derived from

wxTreeCtrl

Data structures

Members

wxRemotelyScrolledTreeCtrl::wxRemotelyScrolledTreeCtrl
wxRemotelyScrolledTreeCtrl::~wxRemotelyScrolledTreeCtrl
wxRemotelyScrolledTreeCtrl::AdjustRemoteScrollbars
wxRemotelyScrolledTreeCtrl::CalcTreeSize
wxRemotelyScrolledTreeCtrl::GetCompanionWindow
wxRemotelyScrolledTreeCtrl::GetScrollPos
wxRemotelyScrolledTreeCtrl::GetScrolledWindow
wxRemotelyScrolledTreeCtrl::GetViewStart
wxRemotelyScrolledTreeCtrl::HideVScrollbar
wxRemotelyScrolledTreeCtrl::OnExpand
wxRemotelyScrolledTreeCtrl::OnPaint
wxRemotelyScrolledTreeCtrl::OnScroll
wxRemotelyScrolledTreeCtrl::OnSize
wxRemotelyScrolledTreeCtrl::PrepareDC
wxRemotelyScrolledTreeCtrl::ScrollToLine
wxRemotelyScrolledTreeCtrl::SetCompanionWindow
wxRemotelyScrolledTreeCtrl::SetScrollbars


wxRemotelyScrolledTreeCtrl::wxRemotelyScrolledTreeCtrl

wxRemotelyScrolledTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pt = wxDefaultPosition, const wxSize& sz = wxDefaultSize, long style = wxTR_HAS_BUTTONS)


wxRemotelyScrolledTreeCtrl::~wxRemotelyScrolledTreeCtrl

~wxRemotelyScrolledTreeCtrl()


wxRemotelyScrolledTreeCtrl::AdjustRemoteScrollbars

void AdjustRemoteScrollbars()

Adjust the containing wxScrolledWindow's scrollbars appropriately


wxRemotelyScrolledTreeCtrl::CalcTreeSize

void CalcTreeSize(const wxTreeItemId& id, wxRect& rect)

void CalcTreeSize(wxRect& rect)

Calculate the tree overall size so we can set the scrollbar correctly


wxRemotelyScrolledTreeCtrl::GetCompanionWindow

wxWindow* GetCompanionWindow() const


wxRemotelyScrolledTreeCtrl::GetScrollPos

int GetScrollPos(int orient) const

In case we're using the generic tree control.


wxRemotelyScrolledTreeCtrl::GetScrolledWindow

wxScrolledWindow* GetScrolledWindow() const

Find the scrolled window that contains this control


wxRemotelyScrolledTreeCtrl::GetViewStart

void GetViewStart(int* x, int* y) const

In case we're using the generic tree control. Get the view start


wxRemotelyScrolledTreeCtrl::HideVScrollbar

void HideVScrollbar()

Helpers


wxRemotelyScrolledTreeCtrl::OnExpand

void OnExpand(wxTreeEvent& event)


wxRemotelyScrolledTreeCtrl::OnPaint

void OnPaint(wxPaintEvent& event)


wxRemotelyScrolledTreeCtrl::OnScroll

void OnScroll(wxScrollWinEvent& event)


wxRemotelyScrolledTreeCtrl::OnSize

void OnSize(wxSizeEvent& event)

Events


wxRemotelyScrolledTreeCtrl::PrepareDC

void PrepareDC(wxDC& dc)

In case we're using the generic tree control.


wxRemotelyScrolledTreeCtrl::ScrollToLine

void ScrollToLine(int posHoriz, int posVert)

Scroll to the given line (in scroll units where each unit is the height of an item)


wxRemotelyScrolledTreeCtrl::SetCompanionWindow

void SetCompanionWindow(wxWindow* companion)

Accessors The companion window is one which will get notified when certain events happen such as node expansion


wxRemotelyScrolledTreeCtrl::SetScrollbars

void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, int noUnitsY, int xPos = 0, int yPos = 0, bool noRefresh = FALSE)

Overrides Override this in case we're using the generic tree control. Calls to this should disable the vertical scrollbar. Number of pixels per user unit (0 or -1 for no scrollbar) Length of virtual canvas in user units Length of page in user units