///////////////////////////////////////////////////////////////////////////////
-// Name: common/popupcmn.cpp
+// Name: src/common/popupcmn.cpp
// Purpose: implementation of wxPopupTransientWindow
// Author: Vadim Zeitlin
// Modified by:
#include "wx/combobox.h" // wxComboControl
#include "wx/app.h" // wxPostEvent
#include "wx/log.h"
- #include "wx/app.h"
#endif //WX_PRECOMP
#ifdef __WXUNIVERSAL__
wxPoint pos = event.GetPosition();
+ // in non-Univ ports the system manages scrollbars for us
+#ifdef __WXUNIVERSAL__
// scrollbar on which the click occurred
wxWindow *sbar = NULL;
+#endif // __WXUNIVERSAL__
wxWindow *win = (wxWindow *)event.GetEventObject();
case wxHT_WINDOW_VERT_SCROLLBAR:
sbar = win->GetScrollbar(wxVERTICAL);
break;
-#endif
+#endif // __WXUNIVERSAL__
default:
// forgot to update the switch after adding a new hit test code?
break;
}
+#ifdef __WXUNIVERSAL__
if ( sbar )
{
// translate the event coordinates to the scrollbar ones
(void)sbar->GetEventHandler()->ProcessEvent(event2);
}
+#endif // __WXUNIVERSAL__
}
// ----------------------------------------------------------------------------
}
#endif // wxUSE_POPUPWIN
-