git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59278
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual wxClientDataType GetClientDataType() const;
// osx specific event handling common for all osx-ports
virtual wxClientDataType GetClientDataType() const;
// osx specific event handling common for all osx-ports
virtual bool OSXHandleClicked( double timestampsec );
wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
virtual bool OSXHandleClicked( double timestampsec );
wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
virtual void DoDeleteOneItem(unsigned int n);
virtual void DoClear();
virtual void DoDeleteOneItem(unsigned int n);
virtual void DoClear();
+ // wxTextEntry functions
+ virtual wxString DoGetValue() const;
+ virtual wxWindow *GetEditableWindow() { return this; }
+
// override the base class virtuals involved in geometry calculations
virtual wxSize DoGetBestSize() const;
virtual void DoMoveWindow(int x, int y, int width, int height);
// override the base class virtuals involved in geometry calculations
virtual wxSize DoGetBestSize() const;
virtual void DoMoveWindow(int x, int y, int width, int height);
virtual void SetClientDataType(wxClientDataType clientDataItemsType);
virtual void SetClientDataType(wxClientDataType clientDataItemsType);
- // implement wxTextEntry pure virtual method
- virtual wxWindow *GetEditableWindow() { return this; }
-
// the subcontrols
wxComboBoxText* m_text;
wxComboBoxChoice* m_choice;
// the subcontrols
wxComboBoxText* m_text;
wxComboBoxChoice* m_choice;
+wxString wxComboBox::DoGetValue() const
+{
+ wxCHECK_MSG( m_text, wxString(), "can't be called for read-only combobox" );
+
+ return m_text->GetValue();
+}
+
wxString wxComboBox::GetValue() const
{
wxString result;
wxString wxComboBox::GetValue() const
{
wxString result;