event PropertyChange (Property as Property, Value as Variant)

Fired when the properties browser is about to change the property's value.

 TypeDescription 
   Property as Property A Property object that was changed using one of the control's editors, and it is about to change the property's value.  
   Value as Variant A Variant expression that specifies the newly value that will be passed to the property.  

The PropertyChange event notifies your application that user is about to change a property. If you are going to change the Value parameter during this event, make sure that your value is accepted by the property, else the control will popup an error message: "Invalid property value". To avoid showing error messages by the control when changing properties, set the InvalidValueMessage property to empty message.  The PropertyChange event is called, even if the user canceled the default implementation in ModalPropertyChange event. The control fires the EditChange event when user types characters in the property's text box control. The PropertyChanged event is fired after changing the value of the property. Use the Value property to retrieve the property's value. Use the Name property to retrieve the name of the property. Use the ID property to identify a property by its identifier.

Syntax for PropertyChange event, /NET version, on:

private void PropertyChange(object sender,exontrol.EXPROPERTIESLISTLib.Property Property,ref object Value)
{
}

Private Sub PropertyChange(ByVal sender As System.Object,ByVal Property As exontrol.EXPROPERTIESLISTLib.Property,ByRef Value As Object) Handles PropertyChange
End Sub

Syntax for PropertyChange event, /COM version, on:

private void PropertyChange(object sender, AxEXPROPERTIESLISTLib._IPropertiesListEvents_PropertyChangeEvent e)
{
}

void OnPropertyChange(LPDISPATCH Property,VARIANT FAR* Value)
{
}

void __fastcall PropertyChange(TObject *Sender,Expropertieslistlib_tlb::IProperty *Property,Variant * Value)
{
}

procedure PropertyChange(ASender: TObject; Property : IProperty;var Value : OleVariant);
begin
end;

procedure PropertyChange(sender: System.Object; e: AxEXPROPERTIESLISTLib._IPropertiesListEvents_PropertyChangeEvent);
begin
end;

begin event PropertyChange(oleobject Property,any Value)
end event PropertyChange

Private Sub PropertyChange(ByVal sender As System.Object, ByVal e As AxEXPROPERTIESLISTLib._IPropertiesListEvents_PropertyChangeEvent) Handles PropertyChange
End Sub

Private Sub PropertyChange(ByVal Property As EXPROPERTIESLISTLibCtl.IProperty,Value As Variant)
End Sub

Private Sub PropertyChange(ByVal Property As Object,Value As Variant)
End Sub

LPARAMETERS Property,Value

PROCEDURE OnPropertyChange(oPropertiesList,Property,Value)
RETURN

Syntax for PropertyChange event, /COM version (others), on:

<SCRIPT EVENT="PropertyChange(Property,Value)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function PropertyChange(Property,Value)
End Function
</SCRIPT>

Procedure OnComPropertyChange Variant llProperty Variant llValue
	Forward Send OnComPropertyChange llProperty llValue
End_Procedure

METHOD OCX_PropertyChange(Property,Value) CLASS MainDialog
RETURN NIL

void onEvent_PropertyChange(COM _Property,COMVariant /*variant*/ _Value)
{
}

function PropertyChange as v (Property as OLE::Exontrol.PropertiesList.1::IProperty,Value as A)
end function

function nativeObject_PropertyChange(Property,Value)
return

The following sample prints the property's name and the property's newly value when user changes the property:

Private Sub PropertiesList1_PropertyChange(ByVal Property As EXPROPERTIESLISTLibCtl.IProperty, Value As Variant)
    Debug.Print "The """ & Property.Name & """'s value is changed. The newly value is " & Value
End Sub

Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.