Init();
Create(parent, id, value, pos, size, choices, style, validator, name);
}
+ ~wxComboBox();
bool Create(wxWindow *parent, wxWindowID id,
const wxString& value = wxEmptyString,
{
return wxItemContainer::GetStringSelection();
}
+
+ virtual void SetString(unsigned int n, const wxString& string);
+
virtual void Popup();
virtual void Dismiss();
wxItemContainer::Clear();
}
- bool IsEmpty() const { return wxItemContainer::IsEmpty(); }
+ // See wxComboBoxBase discussion of IsEmpty().
+ bool IsListEmpty() const { return wxItemContainer::IsEmpty(); }
+ bool IsTextEmpty() const { return wxTextEntry::IsEmpty(); }
void OnChar( wxKeyEvent &event );
+ virtual void SetValue(const wxString& value);
+
// Standard event handling
void OnCut(wxCommandEvent& event);
void OnCopy(wxCommandEvent& event);
// custom list stores.
virtual void GTKCreateComboBoxWidget();
+ virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
+
virtual GtkEntry *GetEntry() const
{ return m_entry; }
// From wxTextEntry:
virtual wxWindow *GetEditableWindow() { return this; }
virtual GtkEditable *GetEditable() const;
- virtual void EnableTextChangedEvents(bool enable)
- {
- if ( enable )
- EnableEvents();
- else
- DisableEvents();
- }
+ virtual void EnableTextChangedEvents(bool enable);
void Init();