VLPropertyList Reference

MethodNotifyCommit

(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 commit the current editor's value to the property being edited.

 

Syntax

Public SubNotifyCommit(ByVal anEditor As CEditor )

 

The NotifyCommit method syntax has these parts:

Part Description
anEditor An object which implements the interface CEditor.

 

Remarks

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

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

Class CMyEditor:

Implements CEditor

'
'

Private m_Listener As CEditorListener

Private Sub CEditor_Reset(ByVal Property As CProperty, _
ByVal aListener As CEditorListener)
   set m_Listener = aListener

   '
   '
   '

End Sub

Private Sub CEditor_Commit()
   If (Not m_listener Is Nothing)Then
      Call m_listener.NotifyCommit(Me)
   End If
End Sub

   '
   '
   '