// Purpose: interface of wxHeaderCtrl
// Author: Vadim Zeitlin
// Created: 2008-12-01
-// RCS-ID: $Id$
// Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
class wxHeaderCtrlEvent : public wxNotifyEvent
{
public:
+ wxHeaderCtrlEvent(wxEventType commandType = wxEVT_NULL, int winid = 0);
+ wxHeaderCtrlEvent(const wxHeaderCtrlEvent& event);
+
/**
Return the index of the column affected by this event.
This method can be called for all header control events.
*/
int GetColumn() const;
-
+ void SetColumn(int col);
+
/**
Return the current width of the column.
This method can only be called for the dragging events.
*/
int GetWidth() const;
-
+ void SetWidth(int width);
+
/**
Return the new order of the column.
- This method can only be called for end reorder event for which it
+ This method can only be called for a reorder event for which it
indicates the tentative new position for the column GetColumn()
selected by the user. If the event is not vetoed, this will become the
new column position in wxHeaderCtrl::GetColumnsOrder().
*/
unsigned int GetNewOrder() const;
+ void SetNewOrder(unsigned int order);
};
-wxEventType wxEVT_COMMAND_HEADER_CLICK;
-wxEventType wxEVT_COMMAND_HEADER_RIGHT_CLICK;
-wxEventType wxEVT_COMMAND_HEADER_MIDDLE_CLICK;
-wxEventType wxEVT_COMMAND_HEADER_DCLICK;
-wxEventType wxEVT_COMMAND_HEADER_RIGHT_DCLICK;
-wxEventType wxEVT_COMMAND_HEADER_MIDDLE_DCLICK;
-wxEventType wxEVT_COMMAND_HEADER_SEPARATOR_DCLICK;
-wxEventType wxEVT_COMMAND_HEADER_BEGIN_RESIZE;
-wxEventType wxEVT_COMMAND_HEADER_RESIZING;
-wxEventType wxEVT_COMMAND_HEADER_END_RESIZE;
-wxEventType wxEVT_COMMAND_HEADER_BEGIN_REORDER;
-wxEventType wxEVT_COMMAND_HEADER_END_REORDER;
-wxEventType wxEVT_COMMAND_HEADER_DRAGGING_CANCELLED;
+wxEventType wxEVT_HEADER_CLICK;
+wxEventType wxEVT_HEADER_RIGHT_CLICK;
+wxEventType wxEVT_HEADER_MIDDLE_CLICK;
+wxEventType wxEVT_HEADER_DCLICK;
+wxEventType wxEVT_HEADER_RIGHT_DCLICK;
+wxEventType wxEVT_HEADER_MIDDLE_DCLICK;
+wxEventType wxEVT_HEADER_SEPARATOR_DCLICK;
+wxEventType wxEVT_HEADER_BEGIN_RESIZE;
+wxEventType wxEVT_HEADER_RESIZING;
+wxEventType wxEVT_HEADER_END_RESIZE;
+wxEventType wxEVT_HEADER_BEGIN_REORDER;
+wxEventType wxEVT_HEADER_END_REORDER;
+wxEventType wxEVT_HEADER_DRAGGING_CANCELLED;