Add GetScrollHelper() to wxWindow.
Let wxScrollHelper set the underlying field itself. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5c86a7fa9e
commit
f4fe2f2052
@ -65,6 +65,7 @@ class WXDLLEXPORT wxSizer;
|
|||||||
class WXDLLEXPORT wxToolTip;
|
class WXDLLEXPORT wxToolTip;
|
||||||
class WXDLLEXPORT wxWindowBase;
|
class WXDLLEXPORT wxWindowBase;
|
||||||
class WXDLLEXPORT wxWindow;
|
class WXDLLEXPORT wxWindow;
|
||||||
|
class WXDLLEXPORT wxScrollHelper;
|
||||||
|
|
||||||
#if wxUSE_ACCESSIBILITY
|
#if wxUSE_ACCESSIBILITY
|
||||||
class WXDLLEXPORT wxAccessible;
|
class WXDLLEXPORT wxAccessible;
|
||||||
@ -343,6 +344,9 @@ public:
|
|||||||
*h = s.y;
|
*h = s.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetScrollHelper( wxScrollHelper *sh ) { m_scrollHelper = sh; }
|
||||||
|
wxScrollHelper *GetScrollHelper() { return m_scrollHelper; }
|
||||||
|
|
||||||
// reset the cached best size value so it will be recalculated the
|
// reset the cached best size value so it will be recalculated the
|
||||||
// next time it is needed.
|
// next time it is needed.
|
||||||
void InvalidateBestSize();
|
void InvalidateBestSize();
|
||||||
@ -1242,6 +1246,8 @@ protected:
|
|||||||
// Virtual size (scrolling)
|
// Virtual size (scrolling)
|
||||||
wxSize m_virtualSize;
|
wxSize m_virtualSize;
|
||||||
|
|
||||||
|
wxScrollHelper *m_scrollHelper;
|
||||||
|
|
||||||
int m_minVirtualWidth; // VirtualSizeHints
|
int m_minVirtualWidth; // VirtualSizeHints
|
||||||
int m_minVirtualHeight;
|
int m_minVirtualHeight;
|
||||||
int m_maxVirtualWidth;
|
int m_maxVirtualWidth;
|
||||||
|
@ -200,6 +200,8 @@ wxWindowBase::wxWindowBase()
|
|||||||
|
|
||||||
m_virtualSize = wxDefaultSize;
|
m_virtualSize = wxDefaultSize;
|
||||||
|
|
||||||
|
m_scrollHelper = (wxScrollHelper *) NULL;
|
||||||
|
|
||||||
m_minVirtualWidth =
|
m_minVirtualWidth =
|
||||||
m_maxVirtualWidth = wxDefaultCoord;
|
m_maxVirtualWidth = wxDefaultCoord;
|
||||||
m_minVirtualHeight =
|
m_minVirtualHeight =
|
||||||
|
@ -311,6 +311,8 @@ wxScrollHelper::wxScrollHelper(wxWindow *win)
|
|||||||
m_handler = NULL;
|
m_handler = NULL;
|
||||||
|
|
||||||
m_win = win;
|
m_win = win;
|
||||||
|
|
||||||
|
m_win->SetScrollHelper( this );
|
||||||
|
|
||||||
// by default, the associated window is also the target window
|
// by default, the associated window is also the target window
|
||||||
DoSetTargetWindow(win);
|
DoSetTargetWindow(win);
|
||||||
|
Loading…
Reference in New Issue
Block a user