added wxHeaderCtrl::ResetColumnsOrder() function; use it from wxGrid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -113,6 +113,16 @@ void wxHeaderCtrlBase::SetColumnsOrder(const wxArrayInt& order)
|
||||
// TODO-RTL: do we need to reverse the array?
|
||||
}
|
||||
|
||||
void wxHeaderCtrlBase::ResetColumnsOrder()
|
||||
{
|
||||
const unsigned count = GetColumnCount();
|
||||
wxArrayInt order(count);
|
||||
for ( unsigned n = 0; n < count; n++ )
|
||||
order[n] = n;
|
||||
|
||||
DoSetColumnsOrder(order);
|
||||
}
|
||||
|
||||
wxArrayInt wxHeaderCtrlBase::GetColumnsOrder() const
|
||||
{
|
||||
const wxArrayInt order = DoGetColumnsOrder();
|
||||
|
||||
Reference in New Issue
Block a user