X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/974a12f86a2882b0999a441ce4ad07e0e2c4377c..56c6aab7e6fe6dccd753fd94d07a44ded2ba70d1:/include/wx/combo.h?ds=inline diff --git a/include/wx/combo.h b/include/wx/combo.h index 8aa155ed71..a504c1543e 100644 --- a/include/wx/combo.h +++ b/include/wx/combo.h @@ -85,7 +85,9 @@ enum // Internal use: Set wxTAB_TRAVERSAL to parent when popup is dismissed wxCC_IFLAG_PARENT_TAB_TRAVERSAL = 0x0800, // Internal use: Secondary popup window type should be used (if available). - wxCC_IFLAG_USE_ALT_POPUP = 0x1000 + wxCC_IFLAG_USE_ALT_POPUP = 0x1000, + // Internal use: Skip popup animation. + wxCC_IFLAG_DISABLE_POPUP_ANIM = 0x2000 }; @@ -322,6 +324,15 @@ public: m_iFlags &= ~wxCC_IFLAG_USE_ALT_POPUP; } + // Call with false to disable popup animation, if any. + void EnablePopupAnimation( bool enable = true ) + { + if ( enable ) + m_iFlags &= ~wxCC_IFLAG_DISABLE_POPUP_ANIM; + else + m_iFlags |= wxCC_IFLAG_DISABLE_POPUP_ANIM; + } + // // Utilies needed by the popups or native implementations // @@ -383,6 +394,9 @@ public: wxByte GetPopupWindowState() const { return m_popupWinState; } + // Set value returned by GetMainWindowOfCompositeControl + void SetCtrlMainWnd( wxWindow* wnd ) { m_mainCtrlWnd = wnd; } + protected: // @@ -481,6 +495,9 @@ protected: virtual void DoSetToolTip( wxToolTip *tip ); #endif + virtual wxWindow *GetMainWindowOfCompositeControl() + { return m_mainCtrlWnd; } + // This is used when m_text is hidden (readonly). wxString m_valueString; @@ -509,6 +526,9 @@ protected: // this is for the popup window wxEvtHandler* m_popupWinEvtHandler; + // main (ie. topmost) window of a composite control (default = this) + wxWindow* m_mainCtrlWnd; + // used to prevent immediate re-popupping incase closed popup // by clicking on the combo control (needed because of inconsistent // transient implementation across platforms).