/////////////////////////////////////////////////////////////////////////////
-// Name: include/wx/vscroll.h
+// Name: wx/vscroll.h
// Purpose: Variable scrolled windows (wx[V/H/HV]ScrolledWindow)
// Author: Vadim Zeitlin
// Modified by: Brad Anderson, Bryan Petty
// Created: 30.05.03
-// RCS-ID: $Id$
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/panel.h"
#include "wx/position.h"
+#include "wx/scrolwin.h"
class WXDLLIMPEXP_FWD_CORE wxVarScrollHelperEvtHandler;
// scrolwin.h) for the purpose of reducing code duplication |
// through the use of mix-in classes. |
// |
+// wxAnyScrollHelperBase |
+// | |
+// | |
+// | |
+// V |
// wxVarScrollHelperBase |
// / \ |
// / \ |
// required virtual functions that need to be implemented for any orientation
// specific work.
-class WXDLLIMPEXP_CORE wxVarScrollHelperBase
+class WXDLLIMPEXP_CORE wxVarScrollHelperBase : public wxAnyScrollHelperBase
{
public:
// constructors and such
// child of it in order to scroll only a portion the area between the
// scrollbars (spreadsheet: only cell area will move).
virtual void SetTargetWindow(wxWindow *target);
- virtual wxWindow *GetTargetWindow() const { return m_targetWindow; }
-
- // Override this function to draw the graphic (or just process EVT_PAINT)
- //virtual void OnDraw(wxDC& WXUNUSED(dc)) { }
// change the DC origin according to the scroll position. To properly
// forward calls to wxWindow::Layout use WX_FORWARD_TO_SCROLL_HELPER()
#ifdef __WXMAC__
// queue mac window update after handling scroll event
- virtual void UpdateMacScrollWindow() = 0;
+ virtual void UpdateMacScrollWindow() { }
#endif // __WXMAC__
// change the target window
void IncOrient(wxCoord& x, wxCoord& y, wxCoord inc);
private:
-
- // the window that receives the scroll events and the window to actually
- // scroll, respectively
- wxWindow *m_win,
- *m_targetWindow;
-
// the total number of (logical) units
size_t m_unitMax;
long style = 0,
const wxString& name = wxPanelNameStr)
: wxPanel(),
- wxVarHVScrollHelper(this)
+ wxVarHVScrollHelper(this)
{
(void)Create(parent, id, pos, size, style, name);
}