The IDLitComponent::EditUserDefProperty function method defines the interface that is displayed when a user selects the "Edit" button on a user-defined property in the property sheet interface. Typically, this method will display an interactive dialog that allows the user to change the value of the property.
| Note |
See User Defined Property Types for a discussion of how the property sheet interface displays user-defined properties.
Result = Obj->[IDLitComponent::] EditUserDefProperty(iTool, PropertyIdentifier)
Returns a 1 if the property value was changed, or a 0 if the property value was not changed.
| Note |
An object reference to the current iTool object.
A string containing the property identifier of the user-defined property.
| Tip |
None
The following is the EditUserDefProperty method of the IDLitOpConvolution operation class. Selecting and editing the Kernel property of this operation displays a dialog that allows the user to edit a convolution kernel.
FUNCTION IDLitopConvolution::EditUserDefProperty, oTool, $
identifier
CASE identifier OF
'KERNEL': RETURN, oTool->DoUIService('ConvolKernel', self)
ELSE:
ENDCASE
RETURN, 0
END
This method simply checks the property identifier to determine whether it matches the string 'KERNEL'. If it does, it returns the value returned by the DoUIService method; otherwise it returns zero. In this case, the DoUIService method actually handles the modification of the property value. See User Defined Property Types for additional discussion.
Introduced: 6.0