X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..fd928524917cb25b0bf016c6f24dfb85de527a3e:/include/wx/mac/listbox.h?ds=sidebyside diff --git a/include/wx/mac/listbox.h b/include/wx/mac/listbox.h index 0d8f38b53e..77c0f27209 100644 --- a/include/wx/mac/listbox.h +++ b/include/wx/mac/listbox.h @@ -13,7 +13,7 @@ #ifndef _WX_LISTBOX_H_ #define _WX_LISTBOX_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "listbox.h" #endif @@ -21,7 +21,7 @@ // simple types // ---------------------------------------------------------------------------- #include "wx/dynarray.h" - +#include "wx/arrstr.h" #if wxUSE_OWNER_DRAWN class WXDLLEXPORT wxOwnerDrawn; @@ -58,6 +58,16 @@ public: { Create(parent, id, pos, size, n, choices, style, validator, name); } + wxListBox(wxWindow *parent, wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxListBoxNameStr) + { + Create(parent, id, pos, size, choices, style, validator, name); + } bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, @@ -66,6 +76,13 @@ public: long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); + bool Create(wxWindow *parent, wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxListBoxNameStr); virtual ~wxListBox(); virtual void Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL); @@ -111,7 +128,7 @@ public: // Windows callbacks virtual void SetupColours(); - virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart ) ; + virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ; virtual bool MacCanFocus() const { return true ; } void OnChar(wxKeyEvent& event); @@ -123,16 +140,16 @@ public: protected: void MacDestroy() ; void MacDelete( int n ) ; - void MacInsert( int n , const char * text) ; - void MacAppend( const char * text) ; - void MacSet( int n , const char *text ) ; + void MacInsert( int n , const wxString& item) ; + void MacAppend( const wxString& item) ; + void MacSet( int n , const wxString& item ) ; void MacClear() ; void MacSetSelection( int n , bool select ) ; int MacGetSelection() const ; int MacGetSelections(wxArrayInt& aSelections) const ; bool MacIsSelected( int n ) const ; void MacScrollTo( int n ) ; - void OnSize( const wxSizeEvent &size ) ; + void OnSize( wxSizeEvent &size ) ; void MacDoClick() ; void MacDoDoubleClick() ;