X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b104d1f017a90074c01732b6f9202f6effaf8289..e412f8928f8cc7d2f21e093f0305137736e9c639:/include/wx/combo.h?ds=sidebyside diff --git a/include/wx/combo.h b/include/wx/combo.h index 8d53347408..4de8d8aa3d 100644 --- a/include/wx/combo.h +++ b/include/wx/combo.h @@ -90,7 +90,9 @@ enum // Flags used by PreprocessMouseEvent and HandleButtonMouseEvent enum { - wxCC_MF_ON_BUTTON = 0x0001 // cursor is on dropbutton area + wxCC_MF_ON_BUTTON = 0x0001, // cursor is on dropbutton area + wxCC_MF_ON_CLICK_AREA = 0x0002 // cursor is on dropbutton or other area + // that can be clicked to show the popup. }; @@ -199,6 +201,10 @@ public: // (ie. wxComboPopup::SetStringValue doesn't get called). void SetText(const wxString& value); + // This method sets value and also optionally sends EVT_TEXT + // (needed by combo popups) + void SetValueWithEvent(const wxString& value, bool withEvent = true); + // // Popup customization methods // @@ -428,9 +434,6 @@ protected: virtual void DoSetToolTip( wxToolTip *tip ); #endif - // Used by OnPaints of derived classes - wxBitmap& GetBufferBitmap(const wxSize& sz) const; - // This is used when m_text is hidden (readonly). wxString m_valueString; @@ -522,6 +525,8 @@ protected: private: void Init(); + wxByte m_ignoreEvtText; // Number of next EVT_TEXTs to ignore + DECLARE_EVENT_TABLE() DECLARE_ABSTRACT_CLASS(wxComboCtrlBase)