git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58010
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// UI helpers
// ----------
// UI helpers
// ----------
// show the popup menu containing all columns with check marks for the ones
// which are currently shown and return true if something was done using it
// (in this case UpdateColumnVisibility() will have been called) or false
// show the popup menu containing all columns with check marks for the ones
// which are currently shown and return true if something was done using it
// (in this case UpdateColumnVisibility() will have been called) or false
// the ids of the items corresponding to the columns are consecutive and
// start from idColumnsBase
void AddColumnsItems(wxMenu& menu, int idColumnsBase = 0);
// 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
// show the columns customization dialog and return true if something was
// changed using it (in which case UpdateColumnVisibility() and/or
// event handlers
void OnSeparatorDClick(wxHeaderCtrlEvent& event);
// event handlers
void OnSeparatorDClick(wxHeaderCtrlEvent& event);
void OnRClick(wxHeaderCtrlEvent& event);
void OnRClick(wxHeaderCtrlEvent& event);
BEGIN_EVENT_TABLE(wxHeaderCtrlBase, wxControl)
EVT_HEADER_SEPARATOR_DCLICK(wxID_ANY, wxHeaderCtrlBase::OnSeparatorDClick)
BEGIN_EVENT_TABLE(wxHeaderCtrlBase, wxControl)
EVT_HEADER_SEPARATOR_DCLICK(wxID_ANY, wxHeaderCtrlBase::OnSeparatorDClick)
EVT_HEADER_RIGHT_CLICK(wxID_ANY, wxHeaderCtrlBase::OnRClick)
EVT_HEADER_RIGHT_CLICK(wxID_ANY, wxHeaderCtrlBase::OnRClick)
END_EVENT_TABLE()
void wxHeaderCtrlBase::ScrollWindow(int dx,
END_EVENT_TABLE()
void wxHeaderCtrlBase::ScrollWindow(int dx,
void wxHeaderCtrlBase::OnRClick(wxHeaderCtrlEvent& event)
{
void wxHeaderCtrlBase::OnRClick(wxHeaderCtrlEvent& event)
{
ShowColumnsMenu(ScreenToClient(wxGetMousePosition()));
}
ShowColumnsMenu(ScreenToClient(wxGetMousePosition()));
}
// ----------------------------------------------------------------------------
// wxHeaderCtrlBase column reordering
// ----------------------------------------------------------------------------
// wxHeaderCtrlBase column reordering
// wxHeaderCtrl extra UI
// ----------------------------------------------------------------------------
// wxHeaderCtrl extra UI
// ----------------------------------------------------------------------------
void wxHeaderCtrlBase::AddColumnsItems(wxMenu& menu, int idColumnsBase)
{
void wxHeaderCtrlBase::AddColumnsItems(wxMenu& menu, int idColumnsBase)
{
bool wxHeaderCtrlBase::ShowCustomizeDialog()
{
bool wxHeaderCtrlBase::ShowCustomizeDialog()
{