virtual int GetSelection() const;
virtual int GetSelections(wxArrayInt& aSelections) const;
+ virtual void EnsureVisible(int n);
+
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
bool m_hasCheckBoxes;
#endif // wxUSE_CHECKLISTBOX
- bool m_blockEvent;
-
struct _GtkTreeEntry* GtkGetEntry(unsigned pos) const;
- void GtkDeselectAll();
- void GtkSetSelection(int n, const bool select, const bool blockEvent);
+
+ void GtkDisableEvents();
+ void GtkEnableEvents();
protected:
virtual void DoClear();
// set the specified item
void GtkSetItem(_GtkTreeIter& iter, const _GtkTreeEntry *entry);
+ // common part of DoSetFirstItem() and EnsureVisible()
+ void DoScrollToCell(int n, float alignY, float alignX);
+
private:
void Init(); //common construction