X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2a533a059cb69c68ce3930556d802db0089d577..75d3838010e2d8a9592a4a016e2994f4f0d3070b:/include/wx/univ/listbox.h?ds=sidebyside diff --git a/include/wx/univ/listbox.h b/include/wx/univ/listbox.h index aa608cfba6..72c9fc48aa 100644 --- a/include/wx/univ/listbox.h +++ b/include/wx/univ/listbox.h @@ -17,6 +17,7 @@ #endif #include "wx/scrolwin.h" // for wxScrollHelper +#include "wx/dynarray.h" // ---------------------------------------------------------------------------- // the actions supported by this control @@ -129,10 +130,10 @@ public: void Activate(int item = -1); // select or unselect the specified or current (if -1) item - void Select(bool sel = TRUE, int item = -1); + void DoSelect(int item = -1, bool sel = TRUE); // more readable wrapper - void Unselect(int item) { Select(FALSE, item); } + void DoUnselect(int item) { DoSelect(item, FALSE); } // select an item and send a notification about it void SelectAndNotify(int item); @@ -168,6 +169,8 @@ public: // let wxColourScheme choose the right colours for us virtual bool IsContainerWindow() const { return TRUE; } + // idle processing + virtual void OnInternalIdle(); protected: // geometry virtual wxSize DoGetBestClientSize() const; @@ -182,7 +185,6 @@ protected: void Init(); // event handlers - void OnIdle(wxIdleEvent& event); void OnSize(wxSizeEvent& event); // common part of Clear() and DoSetItems(): clears everything