X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..2a8312bced9d3f3415383a79a15cad2acf447b7e:/interface/wx/odcombo.h diff --git a/interface/wx/odcombo.h b/interface/wx/odcombo.h index 50db36ccbd..607b20d4d1 100644 --- a/interface/wx/odcombo.h +++ b/interface/wx/odcombo.h @@ -105,6 +105,31 @@ public: long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "comboBox"); + /** + Constructor, creating and showing a owner-drawn combobox. + + @param parent + Parent window. Must not be @NULL. + @param id + Window identifier. The value @c wxID_ANY indicates a default value. + @param value + Initial selection string. An empty string indicates no selection. + @param pos + Window position. + @param size + Window size. + If ::wxDefaultSize is specified then the window is sized appropriately. + @param choices + An array of strings with which to initialise the control. + @param style + Window style. See wxOwnerDrawnComboBox. + @param validator + Window validator. + @param name + Window name. + + @see Create(), wxValidator + */ wxOwnerDrawnComboBox(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, @@ -118,7 +143,7 @@ public: /** Destructor, destroying the owner-drawn combobox. */ - ~wxOwnerDrawnComboBox(); + virtual ~wxOwnerDrawnComboBox(); //@{ /** @@ -148,12 +173,12 @@ public: /** Returns index to the widest item in the list. */ - int GetWidestItem() const; + virtual int GetWidestItem(); /** Returns width of the widest item in the list. */ - int GetWidestItemWidth() const; + virtual int GetWidestItemWidth(); /** This method is used to draw the items background and, maybe, a border around it.