wxBitmapComboBoxA combobox that displays bitmap in front of the list items. It currently only allows using bitmaps of one size, and resizes itself so that a bitmap can be shown next to the text field. Derived from
wxComboBox Remarks While wxBitmapComboBox contains the wxComboBox API, but it might not actually be derived from that class. In fact, if the platform does not have a native implementation, wxBitmapComboBox will inherit from wxOwnerDrawnComboBox. You can determine if the implementation is generic by checking whether wxGENERIC_BITMAPCOMBOBOX is defined. Include files <wx/bmpcbox.h> Window styles
See also window styles overview. Event handling
See also wxComboBox, wxChoice, wxOwnerDrawnComboBox, wxCommandEvent Members
wxBitmapComboBox::wxBitmapComboBox
wxBitmapComboBox::wxBitmapComboBoxwxBitmapComboBox() Default constructor. wxBitmapComboBox(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "comboBox") wxBitmapComboBox(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "comboBox") Constructor, creating and showing a combobox. Parameters parent
id
value
pos
size
n
choices
style
validator
name
See also wxBitmapComboBox::Create, wxValidator
wxBitmapComboBox::~wxBitmapComboBox~wxBitmapComboBox() Destructor, destroying the combobox.
wxBitmapComboBox::Createbool Create(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n, const wxString choices[], long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "comboBox") bool Create(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "comboBox") Creates the combobox for two-step construction. Derived classes should call or replace this function. See wxBitmapComboBox::wxBitmapComboBox for further details.
wxBitmapComboBox::Appendint Append(const wxString& item, const wxBitmap& bitmap = wxNullBitmap) Adds the item to the end of the combo box. int Append(const wxString& item, const wxBitmap& bitmap, void *clientData) int Append(const wxString& item, const wxBitmap& bitmap, wxClientData *clientData) Adds the item to the end of the combo box, associating the given, typed or untyped, client data pointer with the item.
wxBitmapComboBox::GetBitmapSizewxSize GetBitmapSize() const Returns size of bitmaps used in the list.
wxBitmapComboBox::GetItemBitmapwxBitmap GetItemBitmap(unsigned int n) const Returns the bitmap of the item with the given index.
wxBitmapComboBox::Insertint Insert(const wxString& item, const wxBitmap& bitmap, unsigned int pos) Inserts the item into the list before pos. Not valid for wxCB_SORT style, use Append instead. int Insert(const wxString& item, const wxBitmap& bitmap, unsigned int pos, void *clientData) int Insert(const wxString& item, const wxBitmap& bitmap, unsigned int pos, wxClientData *clientData) Inserts the item into the list before pos, associating the given, typed or untyped, client data pointer with the item. Not valid for wxCB_SORT style, use Append instead.
wxBitmapComboBox::SetItemBitmapvoid SetItemBitmap(unsigned int n, const wxBitmap& bitmap) Sets the bitmap for the given item.
|