DisplayType

Applies to

OLE controls

Description

The DisplayType property specifies how the OLE object is displayed in the control. The control can display the actual contents, an icon to represent the object, or as an ActiveX document. ActiveX documents fill the space of the object container and have access to all features of the server application.

Usage


In a painter

StepsTo set the display type of the control:

  1. Select the desired value from the Display Type drop-down list on the General page of the control’s Properties view.


In scripts

The DisplayType property takes a value of the omDisplayType enumerated datatype. Values are:

The following example sets the DisplayType to icon:

ole_1.DisplayType = DisplayAsIcon!