Add wxTreeListCtrl::EnsureVisible().
Just forward this to the wxDataViewCtrl method with the same name. Closes #16937.
This commit is contained in:
@@ -313,6 +313,7 @@ public:
|
|||||||
void SelectAll();
|
void SelectAll();
|
||||||
void UnselectAll();
|
void UnselectAll();
|
||||||
|
|
||||||
|
void EnsureVisible(wxTreeListItem item);
|
||||||
|
|
||||||
// Checkbox handling
|
// Checkbox handling
|
||||||
// -----------------
|
// -----------------
|
||||||
|
@@ -710,6 +710,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
void UnselectAll();
|
void UnselectAll();
|
||||||
|
|
||||||
|
/**
|
||||||
|
Call this to ensure that the given item is visible.
|
||||||
|
|
||||||
|
@since 3.1.0
|
||||||
|
*/
|
||||||
|
void EnsureVisible(wxTreeListItem item);
|
||||||
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1400,6 +1400,14 @@ void wxTreeListCtrl::UnselectAll()
|
|||||||
m_view->UnselectAll();
|
m_view->UnselectAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxTreeListCtrl::EnsureVisible(wxTreeListItem item)
|
||||||
|
{
|
||||||
|
wxCHECK_RET( m_view, "Must create first" );
|
||||||
|
|
||||||
|
m_view->EnsureVisible(m_model->ToDVI(item));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Checkbox handling
|
// Checkbox handling
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user