A list event holds information about events associated with ListCtrl objects.
Handlers bound for the following event types will receive a ListEvent parameter.
See also
__init__ | Constructor. |
GetCacheFrom | For EVT_LIST_CACHE_HINT event only: return the first item which the list control advises us to cache. |
GetCacheTo | For EVT_LIST_CACHE_HINT event only: return the last item (inclusive) which the list control advises us to cache. |
GetColumn | The column position: it is only used with COL events. |
GetData | The data. |
GetImage | The image. |
GetIndex | The item index. |
GetItem | An item object, used by some events. |
GetKeyCode | Key code if the event is a keypress event. |
GetLabel | The (new) item label for EVT_LIST_END_LABEL_EDIT event. |
GetMask | The mask. |
GetPoint | The position of the mouse pointer if the event is a drag event. |
GetText | The text. |
IsEditCancelled | 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). |
CacheFrom | See GetCacheFrom |
CacheTo | See GetCacheTo |
Column | See GetColumn |
Data | See GetData |
Image | See GetImage |
Index | See GetIndex |
Item | See GetItem |
KeyCode | See GetKeyCode |
Label | See GetLabel |
Mask | See GetMask |
Point | See GetPoint |
Text | See GetText |
A list event holds information about events associated with ListCtrl objects.
Possible constructors:
ListEvent(commandType=wxEVT_NULL, id=0)
Constructor.
Parameters: |
|
---|
For EVT_LIST_CACHE_HINT event only: return the first item which the list control advises us to cache.
Return type: | long |
---|
For EVT_LIST_CACHE_HINT event only: return the last item (inclusive) which the list control advises us to cache.
Return type: | long |
---|
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.
Return type: | int |
---|
The data.
Return type: | long |
---|
The image.
Return type: | int |
---|
The item index.
Return type: | long |
---|
An item object, used by some events.
See also ListCtrl.SetItem .
Return type: | ListItem |
---|
Key code if the event is a keypress event.
Return type: | int |
---|
The (new) item label for EVT_LIST_END_LABEL_EDIT event.
Return type: | string |
---|
The mask.
Return type: | long |
---|
The text.
Return type: | string |
---|
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).
Return type: | bool |
---|
See GetCacheFrom
See GetCacheTo
See GetKeyCode