RAD Studio VCL Reference
TPropertyPage.OleObject Property

Contains a reference to the first item in the array of ActiveX controls being edited by the page.

property OleObject: OleVariant;
__property OleVariant OleObject;

Property pages have the ability to be "hooked up to" multiple ActiveX controls, usually by multi-selecting the ActiveX controls in the form designer, and right clicking to invoke the property pages. OleObject points to the first control in the array. To access other ActiveX controls, use the property, OleObjects

Cast the value of OleObject to the appropriate interface, such as IUnknown or IDispatch, and use the methods of the interface to access the property values and methods of the control. 


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