added a helper function to show the popup menu allowing to configure the columns in header control

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-15 11:03:59 +00:00
parent 565382de29
commit e8f25dbbce
4 changed files with 80 additions and 1 deletions

View File

@@ -86,6 +86,10 @@ public:
DoUpdate(idx);
}
// columns order
// -------------
// set the columns order: the array defines the column index which appears
// the given position, it must have GetColumnCount() elements and contain
// all indices exactly once
@@ -110,6 +114,17 @@ public:
unsigned int pos);
// UI helpers
// ----------
// show the popup menu containing all columns with check marks for the ones
// which are currently shown -- this is meant to be called from
// EVT_HEADER_RIGHT_CLICK handler and should toggle the visibility of the
// n-th column if the function returns valid column index and not wxID_NONE
// which is returned if the user cancels the menu
int ShowColumnsMenu(const wxString& title = wxString());
// implementation only from now on
// -------------------------------