- const wxString& value,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxComboBoxNameStr);
-
- void Clear();
- void Delete( int n );
-
- virtual int FindString( const wxString &item ) const;
- int GetSelection() const;
- wxString GetString( int n ) const;
- wxString GetStringSelection() const;
- int GetCount() const;
- int Number() const { return GetCount(); }
- void SetSelection( int n );
- void Select( int n ) { return SetSelection( n ); }
- bool SetStringSelection( const wxString &string );
- void SetString(int n, const wxString &text);
-
- wxString GetValue() const;
- void SetValue(const wxString& value);
-
- void Copy();
- void Cut();
- void Paste();
- bool CanCopy() const;
- bool CanCut() const;
- bool CanPaste() const;
- void SetInsertionPoint( long pos );
- void SetInsertionPointEnd() { SetInsertionPoint( -1 ); }
- long GetInsertionPoint() const;
- long GetLastPosition() const;
- void Remove(long from, long to) { Replace(from, to, wxEmptyString); }
- void Replace( long from, long to, const wxString& value );
- void SetSelection( long from, long to );
- void GetSelection( long* from, long* to ) const;
- void SetEditable( bool editable );
- void Undo() ;
- void Redo() ;
- bool CanUndo() const;
- bool CanRedo() const;
- void SelectAll();
- bool IsEditable() const { return !HasFlag(wxCB_READONLY); }
- bool HasSelection() const ;
-
- // implementation
-
- virtual void SetFocus();
-
- void OnSize( wxSizeEvent &event );
+ const wxString& value,
+ const wxPoint& pos,
+ const wxSize& size,
+ const wxArrayString& choices,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxComboBoxNameStr);
+
+ // Set/GetSelection() from wxTextEntry and wxChoice
+
+ virtual void SetSelection(int n) { wxChoice::SetSelection(n); }
+ virtual void SetSelection(long from, long to)
+ { wxTextEntry::SetSelection(from, to); }
+
+ virtual int GetSelection() const { return wxChoice::GetSelection(); }
+ virtual void GetSelection(long *from, long *to) const
+ { return wxTextEntry::GetSelection(from, to); }
+
+ virtual wxString GetStringSelection() const
+ {
+ return wxItemContainer::GetStringSelection();
+ }
+
+ virtual void Clear()
+ {
+ wxTextEntry::Clear();
+ wxItemContainer::Clear();
+ }
+
+ bool IsEmpty() const { return wxItemContainer::IsEmpty(); }
+