ListViewEvents Interface Reference

This interface defines the set of events that can be raised by an ListView object. More...

Inheritance diagram for ListViewEvents:

Inheritance graph
Collaboration diagram for ListViewEvents:

Collaboration graph
List of all members.

Public Member Functions

 OnData ([in] IDispatch *Sender,[in] IDispatch *Item)
 This event occurs when the ListView needs an data of an item.
 OnItemCheck ([in] IDispatch *Sender,[in] IDispatch *Item)
 This event occurs when an item's checked state changes.
 OnEdited ([in] IDispatch *Sender,[in] IDispatch *Item,[in] Result *NewText)
 This event occurs when an item's text edited.
 OnBeginEdit ([in] IDispatch *Sender,[in] IDispatch *Item,[in] Result *ResultPtr)
 This event occurs when an item's text editing started.
 OnGroupLinkClick ([in] IDispatch *Sender,[in] IDispatch *Group)
 When for an ListViewGroup property Task defined control shows link in the group header.
 OnDrawItem ([in] IDispatch *Sender,[in] IDispatch *Item)
 This event occurs when drawing of an item is started.
 OnSubItemEdited ([in] IDispatch *Sender,[in] IDispatch *Item,[in] LONG SubItem,[in] Result *NewText)
 This event occurs when an sub item's text edited.
 OnBeginSubItemEdit ([in] IDispatch *Sender,[in] IDispatch *Item,[in] LONG SubItem,[in] Result *ResultPtr)
 This event occurs when an sub item's text editing started.

Detailed Description

This interface defines the set of events that can be raised by an ListView object.


Member Function Documentation

OnBeginEdit ( [in] IDispatch *  Sender,
[in] IDispatch *  Item,
[in] Result ResultPtr 
)

This event occurs when an item's text editing started.

Set ResultPtr value to "FALSE" to disable editing.

Parameters:
Sender The object that raised the event.
Item The ListItem object.
Return values:
ResultPtr The Result object that can be used to return an value from the event handler.
Since:
1.1.10.

OnBeginSubItemEdit ( [in] IDispatch *  Sender,
[in] IDispatch *  Item,
[in] LONG  SubItem,
[in] Result ResultPtr 
)

This event occurs when an sub item's text editing started.

Set ResultPtr value to "FALSE" to disable editing.

Parameters:
Sender The object that raised the event.
Item The ListItem object.
SubItem Zero based index of the sub item.
Return values:
ResultPtr The Result object that can be used to return an value from the event handler.
Since:
1.1.14.
See also:
ListView::ReadOnlySubItems

ListView::QuickEdit

OnData ( [in] IDispatch *  Sender,
[in] IDispatch *  Item 
)

This event occurs when the ListView needs an data of an item.

Parameters:
Sender The object that raised the event.
Item The ListItem object.

OnDrawItem ( [in] IDispatch *  Sender,
[in] IDispatch *  Item 
)

This event occurs when drawing of an item is started.

Parameters:
Sender The object that raised the event.
Item ListItem object represents the item. With this object font and colors of the item can be specified.
See also:
DrawItem.

CustomDraw.

Since:
1.1.12.

OnEdited ( [in] IDispatch *  Sender,
[in] IDispatch *  Item,
[in] Result NewText 
)

This event occurs when an item's text edited.

Parameters:
Sender The object that raised the event.
Item The ListItem object.
Return values:
NewText The new text of the ListItem object. This can be changed.

OnGroupLinkClick ( [in] IDispatch *  Sender,
[in] IDispatch *  Group 
)

When for an ListViewGroup property Task defined control shows link in the group header.

This event occurs when the user clicks this link.

Parameters:
Sender The object that raised the event.
Group The ListViewGroup Object.
Since:
1.1.10.

OnItemCheck ( [in] IDispatch *  Sender,
[in] IDispatch *  Item 
)

This event occurs when an item's checked state changes.

Parameters:
Sender The object that raised the event.
Item The ListItem object.

OnSubItemEdited ( [in] IDispatch *  Sender,
[in] IDispatch *  Item,
[in] LONG  SubItem,
[in] Result NewText 
)

This event occurs when an sub item's text edited.

Parameters:
Sender The object that raised the event.
Item The ListItem object.
SubItem Zero based index of the sub item.
Return values:
NewText The new text of the sub item. This can be changed.
Since:
1.1.14.
See also:
ListView::ReadOnlySubItems

ListView::QuickEdit


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:12:52 2015. (C) Veretennikov A. B. 2004-2015