- // single selection logic
- virtual void SetSelection(int n) = 0;
- virtual bool SetStringSelection(const wxString& s);
-
- // don't override this
- virtual void Select(int n) { SetSelection(n); }
+ // get the current selection: this can only be different from the normal
+ // selection if the popup items list is currently opened and the user
+ // selected some item in it but didn't close the list yet; otherwise (and
+ // currently always on platforms other than MSW) this is the same as
+ // GetSelection()
+ virtual int GetCurrentSelection() const { return GetSelection(); }