Moved the check for page scrolling with the wheel into wxMouseEvent so
it wouldn't have to be duplicated everywhere. Also fixed wxSTC so it can handle wheel page scrolling too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -741,6 +741,9 @@ public:
|
||||
// wheel action. Defaults to one.
|
||||
int GetLinesPerAction() const { return m_linesPerAction; }
|
||||
|
||||
// Is the system set to do page scrolling?
|
||||
bool IsPageScroll() const { return m_linesPerAction == UINT_MAX; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxMouseEvent(*this); }
|
||||
|
||||
public:
|
||||
@@ -1492,7 +1495,7 @@ public:
|
||||
m_checked =
|
||||
m_enabled =
|
||||
m_setEnabled =
|
||||
m_setText =
|
||||
m_setText =
|
||||
m_setChecked = FALSE;
|
||||
}
|
||||
wxUpdateUIEvent(const wxUpdateUIEvent & event)
|
||||
|
Reference in New Issue
Block a user