]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp
Added support for toggle button on OS/2.
[wxWidgets.git] / contrib / samples / gizmos / dynsash_switch / dynsash_switch.cpp
index 045d6d33b9a79bd3f1a2d49ea8e1e7b51749f25b..239843942788025b7d367208ccdf0f7d34ae3052 100644 (file)
@@ -239,7 +239,7 @@ void SwitchView::OnFocus(wxFocusEvent& event) {
     wxScrollBar *hscroll = m_dyn_sash->GetHScrollBar(this);
     wxScrollBar *vscroll = m_dyn_sash->GetVScrollBar(this);
 
-    if (event.m_eventObject == hscroll || event.m_eventObject == vscroll) {
+    if (event.GetEventObject() == hscroll || event.GetEventObject() == vscroll) {
         m_view->SetFocus();
     } else {
         event.Skip();