X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d57be459406c2830f6abc9d99ae99166c6d133b..8870c26ecb03e87065fdb3617b8c47ca3c923a53:/include/wx/motif/listbox.h?ds=sidebyside diff --git a/include/wx/motif/listbox.h b/include/wx/motif/listbox.h index 77315ae0fe..5d3d61ca42 100644 --- a/include/wx/motif/listbox.h +++ b/include/wx/motif/listbox.h @@ -67,14 +67,21 @@ class WXDLLEXPORT wxListBox: public wxControl virtual int GetSelection() const ; virtual void Delete(int n); virtual char *GetClientData(int n) const ; + virtual void *GetClientData() { return wxWindow::GetClientData(); } virtual void SetClientData(int n, char *clientData); + virtual void SetClientData( void *data ) { wxWindow::SetClientData(data); } virtual void SetString(int n, const wxString& s); // For single or multiple choice list item virtual int GetSelections(wxArrayInt& aSelections) const; virtual bool Selected(int n) const ; virtual wxString GetString(int n) const ; + virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + virtual void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO) + { wxWindow::SetSize(rect, sizeFlags); } + virtual void SetSize(const wxSize& size) { wxWindow::SetSize(size); } + virtual void SetSize(int width, int height) { SetSize(-1, -1, width, height, wxSIZE_USE_EXISTING); } // Set the specified item at the first visible item // or scroll to max range. @@ -90,7 +97,7 @@ class WXDLLEXPORT wxListBox: public wxControl void Command(wxCommandEvent& event); // Implementation - virtual void ChangeFont(); + virtual void ChangeFont(bool keepOriginalSize = TRUE); virtual void ChangeBackgroundColour(); virtual void ChangeForegroundColour(); WXWidget GetTopWidget() const;