extract AddColumnsItems() from ShowColumnsMenu() to make it possible to reuse it in custom menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -130,6 +130,17 @@ public:
|
||||
// with wxHD_ALLOW_HIDE style
|
||||
bool ShowColumnsMenu(const wxPoint& pt, const wxString& title = wxString());
|
||||
|
||||
// append the entries for all our columns to the given menu, with the
|
||||
// currently visible columns being checked
|
||||
//
|
||||
// this is used by ShowColumnsMenu() but can also be used if you use your
|
||||
// own custom columns menu but nevertheless want to show all the columns in
|
||||
// it
|
||||
//
|
||||
// the ids of the items corresponding to the columns are consecutive and
|
||||
// start from idColumnsBase
|
||||
void AddColumnsItems(wxMenu& menu, int idColumnsBase = 0);
|
||||
|
||||
// show the columns customization dialog and return true if something was
|
||||
// changed using it (in which case UpdateColumnVisibility() and/or
|
||||
// UpdateColumnsOrder() will have been called)
|
||||
|
Reference in New Issue
Block a user