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
AutoDeactivate LockLeft Scope fa-lock-32.png
Content LockRight TabIndex
DesignMode LockTop TabStop
Enabled MouseCursor Top
Handle fa-lock-32.png MouseX fa-lock-32.png Transparent
Height MouseY fa-lock-32.png TrueWindow fa-lock-32.png
HelpTag Name Visible
Index fa-lock-32.png PanelIndex Width
Left Parent Window fa-lock-32.png
Methods
AcceptFileDrop Create RefreshRect
AcceptPictureDrop Destroy SetFocus
AcceptRawDataDrop DrawInto Show
AcceptTextDrop Invalidate ShowPropertyPages
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.