VLPropertyList Reference

MethodNotifyCancel

(For advanced usage)
See Also See Also Applies To Applies To

The method should be called by the editor implementor when editor needs to notify end of editing session and cancel the editing of the current property.

 

Syntax

Public SubNotifyCancel (ByVal anEditor As CEditor)

 

The NotifyCancel method syntax has these parts:

Part Description
anEditor An object that implements the interface CEditor.

 

Remarks

Custom editor implementer must implement CEditor interface, and call NotifyCancel method of the listener when it wants the control to end an editing session without storing the new value.

The following snippet of code shows how to use this method:



Class CMyEditor:

Implements CEditor
' ' Privatem_Listener As CEditorListener Private Sub CEditor_Reset (ByVal aProperty As CProperty, _ ByVal aListener As CEditorListener) Set m_Listener = aListener ' ' ' End Sub Private Sub CEditor_Cancel() If ( Not m_Listener Is Nothing) Then Call m_Listener.NotifyCancel(Me) ' ' ' End If End Sub