Rapid-Q Documentation by William Yu (c)1999 Appendix A: QOLECONTAINER

QOLECONTAINER Component

QOleContainer is an ActiveX container whose properties and methods can be accessed similar to QOleObject.

QOleContainer Properties
FieldTypeR/WDefault
AlignINTEGERRWalNone
AllowInPlaceINTEGERRWTrue
AutoShowINTEGERRWTrue
BorderStyleINTEGERRWbsSingle
ColorINTEGERRW
CursorINTEGERRWcrDefault
EnabledINTEGERRWTrue
HandleINTEGERR
HeightINTEGERRW
HintSTRINGRW
LeftINTEGERRW0
ModifiedINTEGERRWFalse
ParentQFORM/QPANEL/QTABCONTROLW
ShowHintINTEGERRWFalse
SizeModeINTEGERRWsmClip
StateINTEGERRWosEmpty
TabOrderINTEGERRW
TagINTEGERRW
TopINTEGERRW0
WidthINTEGERRW
VisibleINTEGERRWTrue

QOleContainer Methods
MethodTypeDescriptionParams
CreateObjectFUNCTION (ClassName AS STRING) AS INTEGERCreate new embedded object1
FreeSUBRelease object0
InvokeFUNCTIONI (ID AS STRING, Params, ...) AS VARIANTInvoke method/propertyInfinite

QOleContainer Events
EventTypeOccurs when...Params
OnKeyDownSUB (Key AS Word, Shift AS INTEGER)Key held down2
OnKeyPressSUB (Key AS BYTE)User presses a key1
OnKeyUpSUB (Key AS Word, Shift AS INTEGER)User releases a key2
OnMouseDownSUB (Button%, X%, Y%, Shift%)Mouse button held down4
OnMouseMoveSUB (X%, Y%, Shift%)Mouse moves3
OnMouseUpSUB (Button%, X%, Y%, Shift%)Mouse button is released4
OnObjectMoveSUB (Rect AS QRECT)OLE Object has moved or resized1
OnResizeVOIDAfter OLE container is resized0


QOleContainer Examples
' This example requires GIF89.DLL which can be found on
' Rapid-Q's knowledge base page.
' Make sure to register the .DLL if you haven't already
' c:\blah> regsvr32 gif89.dll

' Note, example works best if you load an animated GIF file.

CREATE Form AS QFORM
    Caption = "Animated GIFs"
    Center
    Visible = 1
    CREATE GifAnimation AS QOLECONTAINER
        Align = alClient
        CreateObject("Gif89.Gif89.1")
        '-- FileName is a property in GIF89.DLL
        FileName = "anim.gif"
    END CREATE
    Visible = 0
END CREATE

Form.ShowModal

GifAnimation.Free


Prev Component Contents Next Component
D>