RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TActiveXControl.PropRequestEdit Method (TDispID)

Indicates whether a specified property can be changed.

Pascal
function PropRequestEdit(const PropertyName: WideString): Boolean; overload;
function PropRequestEdit(DispID: TDispID): Boolean; overload;
C++
__fastcall Boolean PropRequestEdit(const BSTR PropertyName);
__fastcall Boolean PropRequestEdit(TDispID DispID);

Call PropRequestEdit to determine whether the property specified by the DispID (or PropertyName) parameter can be edited. PropRequestEdit uses the IPropertyNotifySink interface to determine whether the property can be changed, and returns True if it can. 

When possible, call this function with the DispID rather than the PropertyName because it is more efficient. Calling PropRequestEdit with the PropertyName first looks up the DispID from the given PropertyName before generating the event. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!