X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/89c7e9622933c3ee7906c39bc3927a7d5616b94b..921b3c179967bc006de91cffba50921e16a23cda:/include/wx/motif/listbox.h diff --git a/include/wx/motif/listbox.h b/include/wx/motif/listbox.h index 8672e99ada..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. @@ -89,6 +96,10 @@ class WXDLLEXPORT wxListBox: public wxControl void Command(wxCommandEvent& event); +// Implementation + virtual void ChangeFont(bool keepOriginalSize = TRUE); + virtual void ChangeBackgroundColour(); + virtual void ChangeForegroundColour(); WXWidget GetTopWidget() const; protected: @@ -97,9 +108,6 @@ protected: // List mapping positions->client data wxList m_clientDataList; - -public: - bool m_inSetValue; }; #endif