AGW Logo

agw_title CommandListEvent

A list event holds information about events associated with UltimateListCtrl objects.

hierarchy Inheritance Diagram

Inheritance diagram for: CommandListEvent

Inheritance diagram of CommandListEvent


method_summary Methods Summary

__init__Default class constructor.
GetCacheFromReturns the first item which the list control advises us to cache.
GetCacheToReturns the last item (inclusive) which the list control advises us to cache.
GetColumnReturns the column position: it is only used with COL events.
GetDataReturns the item data.
GetImageReturns the item image.
GetIndexReturns the item index.
GetItemReturns the item itself.
GetKeyCodeReturns the key code if the event is a keypress event.
GetLabelReturns the (new) item label for EVT_LIST_END_LABEL_EDIT event.
GetMaskReturns the item mask.
GetPointReturns the position of the mouse pointer if the event is a drag event.
GetTextReturns the item text.
IsEditCancelledReturns True if it the label editing has been cancelled by the user
SetEditCanceledSets the item editing as cancelled/not cancelled.

API Class API

class CommandListEvent(wx.PyCommandEvent)[source]

A list event holds information about events associated with UltimateListCtrl objects.



__init__(commandTypeOrEvent=None, winid=0)[source]

Default class constructor. For internal use: do not call it in your code!

Parameters:
  • commandTypeOrEvent – the event type or another instance of wx.PyCommandEvent;
  • winid – the event identifier.


GetCacheFrom()[source]

Returns the first item which the list control advises us to cache.

Note

This method is meaningful for EVT_LIST_CACHE_HINT event only.



GetCacheTo()[source]

Returns the last item (inclusive) which the list control advises us to cache.

Note

This method is meaningful for EVT_LIST_CACHE_HINT event only.



GetColumn()[source]

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



GetData()[source]

Returns the item data.



GetImage()[source]

Returns the item image.



GetIndex()[source]

Returns the item index.



GetItem()[source]

Returns the item itself.



GetKeyCode()[source]

Returns the key code if the event is a keypress event.



GetLabel()[source]

Returns the (new) item label for EVT_LIST_END_LABEL_EDIT event.



GetMask()[source]

Returns the item mask.



GetPoint()[source]

Returns the position of the mouse pointer if the event is a drag event.



GetText()[source]

Returns the item text.



IsEditCancelled()[source]

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

Note

This method only makes sense for EVT_LIST_END_LABEL_EDIT messages.



SetEditCanceled(editCancelled)[source]

Sets the item editing as cancelled/not cancelled.

Parameters:editCancelledTrue to set the item editing as cancelled, False otherwise.

Note

This method only makes sense for EVT_LIST_END_LABEL_EDIT messages.

Tree

Table Of Contents

Previous topic

ColWidthInfo

Next topic

GeometryInfo