wxComboBox appearance fixes, looks fine now but doesn't really work under GTK
yet git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -187,10 +187,17 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus)
|
||||
m_child = this;
|
||||
}
|
||||
|
||||
// we can't capture mouse before the window is shown in wxGTL
|
||||
#ifdef __WXGTK__
|
||||
Show();
|
||||
#endif
|
||||
|
||||
m_child->CaptureMouse();
|
||||
m_child->PushEventHandler(new wxPopupWindowHandler(this));
|
||||
|
||||
#ifndef __WXGTK__
|
||||
Show();
|
||||
#endif
|
||||
|
||||
m_focus = winFocus ? winFocus : this;
|
||||
m_focus->PushEventHandler(new wxPopupFocusHandler(this));
|
||||
|
||||
Reference in New Issue
Block a user