RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPropertyPage.OleObject Property

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

Pascal
property OleObject: OleVariant;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!