VLPropertyList Reference

MethodReset

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

VLPropertyList control will call this method when it needs the editor to reset / re-initialize itself as per the information available in the specified CProperty object.

 

Syntax

object.Reset (ByValaProperty As CProperty, ByVal aListener As CEditorListener)

 

The Reset method syntax has these parts:

PartDescription
object An object expression that evaluates to an object of type CEditor.
aProperty An object expression that evaluates to an object of type CProperty.
aListener An object expression evaluating to an object of CEditorListener type. This should be used to notify various editor events.

 

Remark

Reset method allows VLPropertyList control to establish communication channel with the editor. It sends a listener object through which it receives various notifications from the editor. The editor should store the listener object for later use. Also, it should update the listener value whenever Reset gets called. Typically the code will be as given here :

Implements CEditor

Private Sub 
CEditor_Reset(ByVal aProperty As CProperty, _  
   ByVal   aListener As CEditorListener)
   Set m_Listener = aListener
End Sub

Besides setting up the communication channel,  editor implementers often use this to set itself up and match the look and feel of the editor with that of the property being edited. For example a typical list editor will populate itself with the list data from ListItems property of specified property object.

You should not store the property object or modify its attributes in this method. Mechanism of applying edited values to appropriate property object are implemented through listener notifications as described in Commit and Cancel methods.