uOleContainer (OleContainer)

The uOleContainer widget displays an embedded OLE object, enabling you to define links to OLE objects in Uniface applications.

For more information, see Specifying a Widget for a Field or Entity.

Widget Properties

OLE Container Widget Properties

Property

Technical Name

Dynamic?

3-D Effect (3d)

3D

Yes

Allowed Classes

AllowedClass

No

Allow Embedded Object

AllowEmbedding

Yes

Allow Linked Object

AllowLink

Yes

Attach to Window Border (attach)

Attach

Yes

Background Color (BackColor)

BackColor

Yes

Display as Icon

DisplayAsIcon

Yes

NotifyOnChange

NotifyOnChange

 

Frame

Frame

Yes

Label Font (LabelFont)

LabelFont

Yes

Mouse Activation (MouseActivation)

MouseActivation

Yes

Attach Margin (AttachMargin)

AttachMargin

Yes

Popup Rectangle (PopupRect)

PopupRect

Yes

For more information, see Specifying a Widget for a Field or Entity.

Default Logical Widget

Uniface provides a logical widget called OleContainer, which is mapped to uOleContainer:

OcxContainer=uOcxContainer

Grid and MSAA Support

Supported in Grid? No
Supports MSAA? : No

Description

The uOleContainer widget allows you to embed or define links to Object Linking and Embedding (OLE) objects in your Uniface applications. The uOleContainer can contain only one embedded or linked OLE object, although you can have more than one uOleContainer on a form. This widget allows you to integrate OLE objects (such as audio files, Microsoft Excel spreadsheets, and so on) into Uniface applications.

This widget is available only for Microsoft Windows 2000 and higher.

The UOLEINSERTOBJECT function allows you to access the OLE pointer held in Uniface. This function must be exported as follows:

XEXPORT (void) UOLEINSERTOBJECT (void)

If the user focuses on the uOleContainer, by pressing either GOLD D or Control+D, the Detail trigger is activated.