X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b6dbb09746f8f5ee0549a2ff39ae0ac4c725898..687d733769cc797102a52c7cad8edd32be5a2f89:/include/wx/motif/listbox.h diff --git a/include/wx/motif/listbox.h b/include/wx/motif/listbox.h index 5ba7762189..0a7ccee86f 100644 --- a/include/wx/motif/listbox.h +++ b/include/wx/motif/listbox.h @@ -38,7 +38,8 @@ class WXDLLEXPORT wxListBox: public wxControl int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxListBoxNameStr) + const wxString& name = wxListBoxNameStr): + m_clientDataList(wxKEY_INTEGER) { Create(parent, id, pos, size, n, choices, style, validator, name); } @@ -73,7 +74,11 @@ class WXDLLEXPORT wxListBox: public wxControl 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); } // Set the specified item at the first visible item // or scroll to max range. @@ -88,9 +93,18 @@ class WXDLLEXPORT wxListBox: public wxControl void Command(wxCommandEvent& event); - protected: +// Implementation + virtual void ChangeFont(bool keepOriginalSize = TRUE); + virtual void ChangeBackgroundColour(); + virtual void ChangeForegroundColour(); + WXWidget GetTopWidget() const; + +protected: int m_noItems; int m_selected; + + // List mapping positions->client data + wxList m_clientDataList; }; #endif