int GetOrientation() const { return (int) m_extraLong ; }
int GetPosition() const { return m_commandInt ; }
+ bool IsScrolling() const { return m_isScrolling; }
void SetOrientation(int orient) { m_extraLong = (long) orient; }
void SetPosition(int pos) { m_commandInt = pos; }
+ void SetScrolling(bool isScrolling) { m_isScrolling = isScrolling; }
+
+ void CopyObject(wxObject& obj) const;
+public:
+ bool m_isScrolling;
};
// ScrollWin event class, derived fom wxEvent. wxScrollWinEvents
int GetOrientation() const { return (int) m_extraLong ; }
int GetPosition() const { return m_commandInt ; }
+ bool IsScrolling() const { return m_isScrolling; }
void SetOrientation(int orient) { m_extraLong = (long) orient; }
void SetPosition(int pos) { m_commandInt = pos; }
+ void SetScrolling(bool isScrolling) { m_isScrolling = isScrolling; }
void CopyObject(wxObject& object_dest) const;
public:
int m_commandInt; // Additional information
long m_extraLong;
+ bool m_isScrolling;
};
// Mouse event class
{
m_extraLong = orient;
m_commandInt = pos;
+ m_isScrolling = TRUE;
+}
+
+void wxScrollEvent::CopyObject(wxObject& obj_d) const
+{
+ wxScrollEvent *obj = (wxScrollEvent*)&obj_d;
+
+ wxCommandEvent::CopyObject(obj_d);
+
+ obj->m_isScrolling = m_isScrolling;
}
/*
m_eventType = commandType;
m_extraLong = orient;
m_commandInt = pos;
+ m_isScrolling = TRUE;
}
void wxScrollWinEvent::CopyObject(wxObject& obj_d) const
obj->m_extraLong = m_extraLong;
obj->m_commandInt = m_commandInt;
+ obj->m_isScrolling = m_isScrolling;
}
/*