OLEContainer

From Xojo Documentation

Class (inherits from RectControl)


The generic container for embedding ActiveX controls (Windows only).

Events
Close DropObject MouseExit
ConstructContextualMenu EnableWindowlessMode MouseMove
ContextualMenuAction EventTriggered MouseWheel
DragEnter KeyDown Open
DragExit KeyUp ShowObject
DragOver MouseEnter
Properties
Active fa-lock-32.png LockBottom ProgramID
AllowAutoDeactivate LockLeft Scope fa-lock-32.png
AllowTabStop LockRight TabIndex
Content LockTop Tooltip
DesignMode MouseCursor Top
Enabled MouseX fa-lock-32.png Transparent
Handle fa-lock-32.png MouseY fa-lock-32.png TrueWindow fa-lock-32.png
Height Name fa-lock-32.png Visible
Index fa-lock-32.png PanelIndex Width
Left Parent Window fa-lock-32.png
Methods
AcceptFileDrop Create SetFocus
AcceptPictureDrop Destroy Show
AcceptRawDataDrop DrawInto ShowPropertyPages
AcceptTextDrop Invalidate
Close Refresh

Sample Code

This code illustrates the usage of the Create and Show methods. The ShockWave ActiveX control has been assigned to the OLEContainer in the IDE.

OLEContainer1.ProgramID = "ShockwaveFlash.ShockwaveFlash"

If OLEContainer1.Create(False) Then
OLEContainer1.Content.Wmode = "Transparent"
OLEContainer1.Show
End If

See Also

OLEObject class.