home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 4935
- ClientLeft = 2025
- ClientTop = 1905
- ClientWidth = 6060
- Height = 5625
- Left = 1965
- LinkTopic = "Form1"
- ScaleHeight = 4935
- ScaleWidth = 6060
- Top = 1275
- WhatsThisButton = -1 'True
- WhatsThisHelp = -1 'True
- Width = 6180
- Begin VB.ListBox List1
- Height = 840
- Index = 2
- Left = 4020
- TabIndex = 4
- Top = 660
- Width = 1815
- End
- Begin VB.ListBox List1
- Height = 840
- Index = 1
- Left = 2100
- TabIndex = 3
- Top = 660
- Width = 1815
- End
- Begin VB.ListBox List1
- Height = 840
- Index = 0
- Left = 180
- TabIndex = 2
- Top = 660
- Width = 1815
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Object Get Formats"
- Height = 195
- Index = 2
- Left = 4020
- TabIndex = 8
- Top = 420
- Width = 1365
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Object Accept Formats"
- Height = 195
- Index = 1
- Left = 2100
- TabIndex = 7
- Top = 420
- Width = 1620
- End
- Begin VB.Label Label1
- Caption = "Object Verbs"
- Height = 195
- Index = 0
- Left = 180
- TabIndex = 6
- Top = 420
- Width = 1035
- End
- Begin ComctlLib.StatusBar StatusBar1
- Align = 2 'Align Bottom
- Height = 255
- Left = 0
- Negotiate = -1 'True
- TabIndex = 5
- Top = 4680
- Width = 6060
- _Version = 65536
- _ExtentX = 10689
- _ExtentY = 450
- _StockProps = 68
- AlignSet = -1 'True
- SimpleText = ""
- _timers = 2
- NumPanels = 3
- i1 = "Form1.frx":0000
- i2 = "Form1.frx":010C
- i3 = "Form1.frx":01FB
- End
- Begin ComctlLib.Toolbar Toolbar1
- Align = 1 'Align Top
- Height = 390
- Left = 0
- Negotiate = -1 'True
- TabIndex = 1
- Top = 0
- Width = 6060
- _Version = 65536
- _ExtentX = 10689
- _ExtentY = 688
- _StockProps = 96
- ImageList = ""
- NumButtons = 2
- i1 = "Form1.frx":02EA
- i2 = "Form1.frx":045F
- AlignSet = -1 'True
- End
- Begin VB.OLE OLE1
- Height = 2895
- Left = 180
- TabIndex = 0
- Top = 1620
- Width = 5655
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- NegotiatePosition= 1 'Left
- Begin VB.Menu mnuFileNewObject
- Caption = "&New Object"
- End
- Begin VB.Menu mnuFileSep1
- Caption = "-"
- End
- Begin VB.Menu mnuFileExit
- Caption = "E&xit"
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub mnuFileExit_Click()
- Unload Me
- End Sub
- Private Sub mnuFileNewObject_Click()
- Dim I ' Declare counter variable.
- Dim Buffer As String 'for string manipulation
- 'Clear the OLE Control if it contains an object
- If OLE1.Class <> "" Then
- OLE1.Close
- End If
- ' Display the Insert Object dialog box.
- On Error GoTo ThisWayOut
- OLE1.InsertObjDlg
- On Error GoTo 0
- ' Update the list of available verbs.
- Buffer = OLE1.Class
- Me.Caption = "This is not " & _
- Left$(Buffer, InStr(Buffer, ".") - 1) & _
- " running."
- OLE1.FetchVerbs ' Fetch verbs.
- ' Clear the list boxes.
- For I = 0 To 2
- List1(I).Clear
- Next
- ' Fill the verbs list box. Because ObjectVerbs(0) is
- ' the default verb and is repeated in the ObjectVerbs()
- ' array, start the count at 1.
- For I = 1 To OLE1.ObjectVerbsCount - 1
- List1(0).AddItem OLE1.ObjectVerbs(I)
- Next I
- 'Fill the Accept Formats list box.
- For I = 0 To OLE1.ObjectAcceptFormatsCount - 1
- List1(1).AddItem OLE1.ObjectAcceptFormats(I)
- Next I
- ' Fill the Get Formats list box.
- For I = 0 To OLE1.ObjectGetFormatsCount - 1
- List1(2).AddItem OLE1.ObjectGetFormats(I)
- Next I
- Exit Sub
- ThisWayOut:
- OLE1.Class = ""
- End Sub
-