implement click events in wxHeaderCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-08 00:57:53 +00:00
parent ef52f19e6a
commit fa3d4aaf0f
8 changed files with 328 additions and 12 deletions

View File

@@ -49,9 +49,20 @@
wxHD_DRAGDROP.
@endStyleTable
@beginEventTable{wxHeaderEvent}
@event{EVT_HEADER_CLICK(id, func)}
A column heading was clicked.
@beginEventTable{wxHeaderCtrlEvent}
@event{EVT_HEADER_CLICK(id, func)}
A column heading was clicked.
@event{EVT_HEADER_RIGHT_CLICK(id, func)}
A column heading was right clicked.
@event{EVT_HEADER_MIDDLE_CLICK(id, func)}
A column heading was clicked with the middle mouse button.
@event{EVT_HEADER_DCLICK(id, func)}
A column heading was double clicked.
@event{EVT_HEADER_RIGHT_DCLICK(id, func)}
A column heading was right double clicked.
@event{EVT_HEADER_MIDDLE_DCLICK(id, func)}
A column heading was double clicked with the middle mouse button.
@endEventTable
@library{wxcore}
@@ -285,3 +296,22 @@ public:
*/
void RemoveSortIndicator(unsigned int idx);
};
/**
@class wxHeaderCtrlEvent
Event class representing the events generated by wxHeaderCtrl.
@library{wxcore}
@category{ctrl}
@see wxHeaderCtrl
*/
class wxHeaderCtrlEvent : public wxNotifyEvent
{
public:
/**
Return the index of the column affected by this event.
*/
int GetColumn() const;
};