]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/scrolbar.cpp
we need our own implementation because in wxmac wxIcon does not inherit from wxBitmap...
[wxWidgets.git] / src / os2 / scrolbar.cpp
index a1f56be9c7de4263eae3abd3660613c2ee2389ed..8837a464042ae9c8a4e9e944a1230db4d45b2a1c 100644 (file)
@@ -40,7 +40,7 @@ bool wxScrollBar::Create (
     int                             nWidth = rSize.x;
     int                             nHeight = rSize.y;
 
-    if (!parent)
+    if (!pParent)
         return FALSE;
     pParent->AddChild(this);
     SetName(rsName);
@@ -226,6 +226,7 @@ bool wxScrollBar::OS2OnScroll (
                                            ,m_windowId
                                           );
 
+    vEvent.SetOrientation(IsVertical() ? wxVERTICAL : wxHORIZONTAL);
     vEvent.SetPosition(nPosition);
     vEvent.SetEventObject(this);
     return GetEventHandler()->ProcessEvent(vEvent);
@@ -306,7 +307,7 @@ void wxScrollBar::Command (
   wxCommandEvent&                   rEvent
 )
 {
-    SetThumbPosition(rEvent.m_commandInt);
+    SetThumbPosition(rEvent.GetInt());
     ProcessCommand(rEvent);
 } // end of wxScrollBar::Command