For wxMSW capture and release the mouse as the cursor moves out or
back in to the transient popup window to enable the transient to be automatically dismissed when a click happens outside of it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,6 +127,11 @@ protected:
|
||||
// get alerted when child gets deleted from under us
|
||||
void OnDestroy(wxWindowDestroyEvent& event);
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// check if the mouse needs captured or released
|
||||
void OnIdle(wxIdleEvent& event);
|
||||
#endif
|
||||
|
||||
// the child of this popup if any
|
||||
wxWindow *m_child;
|
||||
|
||||
@@ -141,6 +146,7 @@ protected:
|
||||
wxPopupWindowHandler *m_handlerPopup;
|
||||
wxPopupFocusHandler *m_handlerFocus;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxPopupTransientWindow)
|
||||
DECLARE_NO_COPY_CLASS(wxPopupTransientWindow)
|
||||
};
|
||||
|
Reference in New Issue
Block a user