wxListEventA list event holds information about events associated with wxListCtrl objects. Derived from
wxNotifyEvent Include files <wx/listctrl.h> Event table macros To process input from a list control, use these event handler macros to direct input to member functions that take a wxListEvent argument.
Members
wxListEvent::wxListEvent
wxListEvent::wxListEventwxListEvent(WXTYPE commandType = 0, int id = 0) Constructor.
wxListEvent::GetCacheFromlong GetCacheFrom() const For EVT_LIST_CACHE_HINT event only: return the first item which the list control advises us to cache.
wxListEvent::GetCacheTolong GetCacheTo() const For EVT_LIST_CACHE_HINT event only: return the last item (inclusive) which the list control advises us to cache.
wxListEvent::GetKeyCodeint GetKeyCode() const Key code if the event is a keypress event.
wxListEvent::GetIndexlong GetIndex() const The item index.
wxListEvent::GetColumnint GetColumn() const The column position: it is only used with COL events. For the column dragging events, it is the column to the left of the divider being dragged, for the column click events it may be -1 if the user clicked in the list control header outside any column.
wxListEvent::GetPointwxPoint GetPoint() const The position of the mouse pointer if the event is a drag event.
wxListEvent::GetLabelconst wxString& GetLabel() const The (new) item label for EVT_LIST_END_LABEL_EDIT event.
wxListEvent::GetTextconst wxString& GetText() const The text.
wxListEvent::GetImageint GetImage() const The image.
wxListEvent::GetDatalong GetData() const The data.
wxListEvent::GetMasklong GetMask() const The mask.
wxListEvent::GetItemconst wxListItem& GetItem() const An item object, used by some events. See also wxListCtrl::SetItem.
wxListEvent::IsEditCancelledbool IsEditCancelled() const This method only makes sense for EVT_LIST_END_LABEL_EDIT message and returns true if it the label editing has been cancelled by the user (GetLabel returns an empty string in this case but it doesn't allow the application to distinguish between really cancelling the edit and the admittedly rare case when the user wants to rename it to an empty string).
|