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).
|