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:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user