home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmType
- BorderStyle = 1 'Fixed Single
- Caption = "Object Type"
- ClientHeight = 2535
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 2655
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2535
- ScaleWidth = 2655
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 375
- Left = 1440
- TabIndex = 7
- Top = 2040
- Width = 1095
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Default = -1 'True
- Height = 375
- Left = 120
- TabIndex = 6
- Top = 2040
- Width = 1095
- End
- Begin VB.Frame fraType
- Caption = "Object Type"
- Height = 855
- Left = 120
- TabIndex = 3
- Top = 1080
- Width = 2415
- Begin VB.OptionButton optTypeLinked
- Caption = "&Linked"
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 480
- Width = 975
- End
- Begin VB.OptionButton optTypeEmbedded
- Caption = "&Embedded"
- Height = 255
- Left = 120
- TabIndex = 4
- Top = 240
- Width = 1095
- End
- End
- Begin VB.Frame fraSizeMode
- Caption = "Size Mode"
- Height = 855
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 2415
- Begin VB.OptionButton optScretchCC
- Caption = "Stretch Container &Control"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 480
- Width = 2175
- End
- Begin VB.OptionButton optStretchObject
- Caption = "Stretch &Object"
- Height = 255
- Left = 120
- TabIndex = 1
- Top = 240
- Value = -1 'True
- Width = 1335
- End
- End
- Attribute VB_Name = "frmType"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdCancel_Click()
- Unload frmType
- End Sub
- Private Sub cmdOK_Click()
- With frmOLE.oleDisplay
- .Height = 4215
- .Width = 4575
- End With
- If optStretchObject.Value = True Then
- 'SizeMode=
- '1-Stretch
- '2-Autosize
- frmOLE.oleDisplay.SizeMode = 1
- Else
- frmOLE.oleDisplay.SizeMode = 2
- End If
- If optTypeEmbedded.Value = True Then
- 'OLETypeAllowed=
- '0-linked
- '1-embedded
- frmOLE.oleDisplay.OLETypeAllowed = 1
- Else
- frmOLE.oleDisplay.OLETypeAllowed = 0
- End If
- 'Hide frmType
- frmType.Hide
- '(You can also do cmdOK.Parent.Hide)
- ' Hide cmdOK's Parent (frmType)
- 'Insert Object
- frmOLE.oleDisplay.InsertObjDlg
- If frmOLE.oleDisplay.Class <> "" Then
- frmOLE.cmdObjInfo.Enabled = True
- End If
- Unload frmType
- End Sub
-