DesktopOLEContainer

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from DesktopUIControl)


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

Events
Closing EventTriggered MouseExit
ConstructContextualMenu FocusLost MouseMove
ContextualMenuItemSelected FocusReceived MouseUp
DragEnter KeyDown MouseWheel
DragExit KeyUp Opening
DragOver MouseDown ShowObject
DropObject MouseDrag
EnableWindowlessMode MouseEnter
Properties
Active fa-lock-32.png Left ProgramID
AllowAutoDeactivate LockBottom Scope fa-lock-32.png
AllowTabStop LockLeft TabIndex
Content LockRight Tooltip
DesignMode LockTop Top
Enabled MouseCursor Transparent
Handle fa-lock-32.png Name fa-lock-32.png Visible
Height PanelIndex Width
Index fa-lock-32.png Parent Window fa-lock-32.png
Methods
AcceptFileDrop Create Show
AcceptPictureDrop Destroy ShowPropertyPages
AcceptRawDataDrop DrawInto Subscribe
AcceptTextDrop Refresh Unsubscribe
Close SetFocus

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.