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 (REF NOT FOUND)
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(wxWindow* parent, wxWindowID id, const wxPoint& pt = wxDefaultPosition, const wxSize& sz = wxDefaultSize, long style = wxTR_HAS_BUTTONS)
~wxRemotelyScrolledTreeCtrl()
void AdjustRemoteScrollbars()
Adjust the containing wxScrolledWindow's scrollbars appropriately
void CalcTreeSize(const wxTreeItemId& id, wxRect& rect)
void CalcTreeSize(wxRect& rect)
Calculate the tree overall size so we can set the scrollbar correctly
wxWindow* GetCompanionWindow() const
int GetScrollPos(int orient) const
In case we're using the generic tree control.
wxScrolledWindow* GetScrolledWindow() const
Find the scrolled window that contains this control
void GetViewStart(int* x, int* y) const
In case we're using the generic tree control. Get the view start
void HideVScrollbar()
Helpers
void OnExpand(wxTreeEvent& event)
void OnPaint(wxPaintEvent& event)
void OnScroll(wxScrollWinEvent& event)
void OnSize(wxSizeEvent& event)
Events
void PrepareDC(wxDC& dc)
In case we're using the generic tree control.
void ScrollToLine(int posHoriz, int posVert)
Scroll to the given line (in scroll units where each unit is the height of an item)
void SetCompanionWindow(wxWindow* companion)
Accessors The companion window is one which will get notified when certain events happen such as node expansion
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