X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecd87e5b71cdfd71b3356181ab8be1bf508942ef..ef43e62e77f166157029b852d0ac197fc0fba135:/src/common/pickerbase.cpp?ds=sidebyside diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index c714fc13c4..db435a8eca 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -45,7 +45,7 @@ BEGIN_EVENT_TABLE(wxPickerBase, wxControl) EVT_SIZE(wxPickerBase::OnSize) WX_EVENT_TABLE_CONTROL_CONTAINER(wxPickerBase) END_EVENT_TABLE() -WX_DELEGATE_TO_CONTROL_CONTAINER(wxPickerBase) +WX_DELEGATE_TO_CONTROL_CONTAINER(wxPickerBase, wxControl) // ---------------------------------------------------------------------------- @@ -59,7 +59,8 @@ bool wxPickerBase::CreateBase(wxWindow *parent, const wxSize& size, long style, const wxValidator& validator, - const wxString& name) + const wxString& name, + long textstyle) { // remove any border style from our style as wxPickerBase's window must be // invisible (user styles must be set on the textctrl or the platform-dependent picker) @@ -75,8 +76,9 @@ bool wxPickerBase::CreateBase(wxWindow *parent, // NOTE: the style of this class (wxPickerBase) and the style of the // attached text control are different: GetTextCtrlStyle() extracts // the styles related to the textctrl from the styles passed here - m_text = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, - wxDefaultSize, GetTextCtrlStyle(style)); + m_text = new wxTextCtrl(this, wxID_ANY, wxEmptyString, + wxDefaultPosition, wxDefaultSize, + GetTextCtrlStyle(style) | textstyle); if (!m_text) { wxFAIL_MSG( wxT("wxPickerBase's textctrl creation failed") );