projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates from Adrián González Alba
[wxWidgets.git]
/
src
/
common
/
popupcmn.cpp
diff --git
a/src/common/popupcmn.cpp
b/src/common/popupcmn.cpp
index 788e0bdffe933a528c6edd409bc5cfb4213ca148..de7f0683b69446fcef08a512ed675d2cd6071879 100644
(file)
--- a/
src/common/popupcmn.cpp
+++ b/
src/common/popupcmn.cpp
@@
-29,7
+29,7
@@
#include "wx/popupwin.h"
#ifndef WX_PRECOMP
#include "wx/popupwin.h"
#ifndef WX_PRECOMP
- #include "wx/combobox.h" // wxComboC
ontro
l
+ #include "wx/combobox.h" // wxComboC
tr
l
#include "wx/app.h" // wxPostEvent
#include "wx/log.h"
#endif //WX_PRECOMP
#include "wx/app.h" // wxPostEvent
#include "wx/log.h"
#endif //WX_PRECOMP
@@
-402,13
+402,13
@@
BEGIN_EVENT_TABLE(wxPopupComboWindow, wxPopupTransientWindow)
EVT_KEY_DOWN(wxPopupComboWindow::OnKeyDown)
END_EVENT_TABLE()
EVT_KEY_DOWN(wxPopupComboWindow::OnKeyDown)
END_EVENT_TABLE()
-wxPopupComboWindow::wxPopupComboWindow(wxComboC
ontro
l *parent)
+wxPopupComboWindow::wxPopupComboWindow(wxComboC
tr
l *parent)
: wxPopupTransientWindow(parent)
{
m_combo = parent;
}
: wxPopupTransientWindow(parent)
{
m_combo = parent;
}
-bool wxPopupComboWindow::Create(wxComboC
ontro
l *parent)
+bool wxPopupComboWindow::Create(wxComboC
tr
l *parent)
{
m_combo = parent;
{
m_combo = parent;
@@
-436,7
+436,7
@@
void wxPopupComboWindow::PositionNearCombo()
void wxPopupComboWindow::OnDismiss()
{
void wxPopupComboWindow::OnDismiss()
{
- m_combo->OnDismiss();
+ m_combo->On
Popup
Dismiss();
}
void wxPopupComboWindow::OnKeyDown(wxKeyEvent& event)
}
void wxPopupComboWindow::OnKeyDown(wxKeyEvent& event)
@@
-462,10
+462,10
@@
void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
wxPoint pos = event.GetPosition();
// in non-Univ ports the system manages scrollbars for us
wxPoint pos = event.GetPosition();
// in non-Univ ports the system manages scrollbars for us
-#if
def __WXUNIVERSAL__
+#if
defined(__WXUNIVERSAL__) && wxUSE_SCROLLBAR
// scrollbar on which the click occurred
wxWindow *sbar = NULL;
// scrollbar on which the click occurred
wxWindow *sbar = NULL;
-#endif // __WXUNIVERSAL__
+#endif // __WXUNIVERSAL__
&& wxUSE_SCROLLBAR
wxWindow *win = (wxWindow *)event.GetEventObject();
wxWindow *win = (wxWindow *)event.GetEventObject();
@@
-498,7
+498,7
@@
void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
}
break;
}
break;
-#if
def __WXUNIVERSAL__
+#if
defined(__WXUNIVERSAL__) && wxUSE_SCROLLBAR
case wxHT_WINDOW_HORZ_SCROLLBAR:
sbar = win->GetScrollbar(wxHORIZONTAL);
break;
case wxHT_WINDOW_HORZ_SCROLLBAR:
sbar = win->GetScrollbar(wxHORIZONTAL);
break;
@@
-506,7
+506,7
@@
void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
case wxHT_WINDOW_VERT_SCROLLBAR:
sbar = win->GetScrollbar(wxVERTICAL);
break;
case wxHT_WINDOW_VERT_SCROLLBAR:
sbar = win->GetScrollbar(wxVERTICAL);
break;
-#endif // __WXUNIVERSAL__
+#endif // __WXUNIVERSAL__
&& wxUSE_SCROLLBAR
default:
// forgot to update the switch after adding a new hit test code?
default:
// forgot to update the switch after adding a new hit test code?
@@
-523,7
+523,7
@@
void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
break;
}
break;
}
-#if
def __WXUNIVERSAL__
+#if
defined(__WXUNIVERSAL__) && wxUSE_SCROLLBAR
if ( sbar )
{
// translate the event coordinates to the scrollbar ones
if ( sbar )
{
// translate the event coordinates to the scrollbar ones
@@
-536,7
+536,7
@@
void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
(void)sbar->GetEventHandler()->ProcessEvent(event2);
}
(void)sbar->GetEventHandler()->ProcessEvent(event2);
}
-#endif // __WXUNIVERSAL__
+#endif // __WXUNIVERSAL__
&& wxUSE_SCROLLBAR
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------