DisplayType
property (DataWindow object)
Description
The way the OLE Object control displays the OLE object it
contains. It can display an icon or an image of the object’s contents.
The image is reduced to fit inside the OLE container.
Both the icon and the image are provided by the OLE server. If the
OLE server does not support a contents view, PowerBuilder displays an
icon even if DisplayType is set to contents.
Applies to
OLE Object controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.olecontrolname.DisplayType |
Describe and Modify argument:
|
1 |
"olecontrolname.DisplayType { = ' type ' }" |
|
Parameter |
Description |
|---|---|
|
olecontrolname |
The name of the OLE Object control for which you |
|
type |
A number specifying whether the user will see an Values 0 — Icon 1 — |
Usage
In the painter
Select the control and set the value in the Properties view,
Options tab.
Examples
|
1 2 3 4 5 |
string ls_data ls_data = dw1.Object.ole_report.DisplayType dw1.Object.ole_report.DisplayType = 1 ls_data = dw1.Describe("ole_report.DisplayType") dw1.Modify("ole_report.DisplayType='1'") |