added wxRearrange{List,Ctrl,Dialog} and use it in wxHeaderCtrl and wxGrid to provide a way to interactively customize the columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -132,7 +132,7 @@ public:
|
||||
|
||||
// show the columns customization dialog and return true if something was
|
||||
// changed using it (in which case UpdateColumnVisibility() and/or
|
||||
// UpdateColumnWidth() will have been called)
|
||||
// UpdateColumnsOrder() will have been called)
|
||||
//
|
||||
// this is called by the control itself from ShowColumnsMenu() (which in
|
||||
// turn is only called by the control if wxHD_ALLOW_HIDE style was
|
||||
@@ -174,6 +174,15 @@ protected:
|
||||
wxFAIL_MSG( "must be overridden if called" );
|
||||
}
|
||||
|
||||
// this method is called from ShowCustomizeDialog() to reorder all columns
|
||||
// at once and should be implemented for controls using wxHD_ALLOW_REORDER
|
||||
// style (there is no need to call SetColumnsOrder() from here, this is
|
||||
// done by the control itself)
|
||||
virtual void UpdateColumnsOrder(const wxArrayInt& WXUNUSED(order))
|
||||
{
|
||||
wxFAIL_MSG( "must be overridden if called" );
|
||||
}
|
||||
|
||||
// this method can be overridden in the derived classes to do something
|
||||
// (e.g. update/resize some internal data structures) before the number of
|
||||
// columns in the control changes
|
||||
|
Reference in New Issue
Block a user