home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form fOptions
- BorderStyle = 3 'Fixed Dialog
- Caption = "Form1"
- ClientHeight = 915
- ClientLeft = 1395
- ClientTop = 6585
- ClientWidth = 6990
- Height = 1320
- Left = 1335
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 915
- ScaleWidth = 6990
- ShowInTaskbar = 0 'False
- Top = 6240
- Width = 7110
- Begin VB.Frame frmInnerBevel
- Caption = "Frame1"
- Height = 615
- Left = 4680
- TabIndex = 4
- Top = 120
- Width = 2175
- Begin VB.OptionButton optInnerBevel
- Caption = "Option2"
- Height = 255
- Index = 1
- Left = 1080
- TabIndex = 8
- Top = 240
- Width = 975
- End
- Begin VB.OptionButton optInnerBevel
- Caption = "Option2"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 7
- Top = 240
- Width = 975
- End
- End
- Begin VB.Frame frmOuterBevel
- Caption = "Frame1"
- Height = 615
- Left = 2400
- TabIndex = 3
- Top = 120
- Width = 2175
- Begin VB.OptionButton optOuterBevel
- Caption = "Option1"
- Height = 255
- Index = 1
- Left = 1080
- TabIndex = 6
- Top = 240
- Width = 855
- End
- Begin VB.OptionButton optOuterBevel
- Caption = "Option1"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 5
- Top = 240
- Width = 855
- End
- End
- Begin VB.Frame frmBorder
- Caption = "Frame1"
- Height = 615
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 2175
- Begin VB.OptionButton optBorder
- Caption = "Option1"
- Height = 255
- Index = 1
- Left = 1080
- TabIndex = 2
- Top = 240
- Width = 975
- End
- Begin VB.OptionButton optBorder
- Caption = "Option1"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 1
- Top = 240
- Width = 975
- End
- End
- Attribute VB_Name = "fOptions"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Form_Activate()
- 'Set default values for option buttons to match
- 'current settings for MhAVI control
- If fMhAVI!MhAVI1.BorderStyle <> 0 Then
- optBorder(0).Value = True
- Else
- optBorder(1).Value = True
- End If
- If fMhAVI!MhAVI1.BevelSize <> 0 Then
- optOuterBevel(0).Value = True
- Else
- optOuterBevel(1).Value = True
- End If
- If fMhAVI!MhAVI1.BevelSizeInner <> 0 Then
- optInnerBevel(0).Value = True
- Else
- optInnerBevel(1).Value = True
- End If
- fOptions.SetFocus
- End Sub
- Private Sub Form_Load()
- 'Initialize form
- fOptions.Caption = "MhAVI Options"
- frmBorder.Caption = "Set Border Style"
- optBorder(0).Caption = "Show"
- optBorder(1).Caption = "Hide"
- frmOuterBevel.Caption = "Set Outer Bevel"
- optOuterBevel(0).Caption = "Show"
- optOuterBevel(1).Caption = "Hide"
- frmInnerBevel.Caption = "Set Inner Bevel"
- optInnerBevel(0).Caption = "Show"
- optInnerBevel(1).Caption = "Hide"
- CenterForm ("fOptions")
- End Sub
- Private Sub optBorder_Click(Index As Integer)
- 'Set border style
- Select Case Index
- Case 0
- fMhAVI!MhAVI1.BorderStyle = ig_BORDER
- Case 1
- fMhAVI!MhAVI1.BorderStyle = ig_NO_BORDER
- End Select
- End Sub
- Private Sub optInnerBevel_Click(Index As Integer)
- 'Set inner Bevel size
- Select Case Index
- Case 0
- fMhAVI!MhAVI1.BevelSizeInner = 2
- Case 1
- fMhAVI!MhAVI1.BevelSizeInner = 0
- End Select
- End Sub
- Private Sub optOuterBevel_Click(Index As Integer)
- 'Set outer Bevel size
- Select Case Index
- Case 0
- fMhAVI!MhAVI1.BevelSize = 2
- Case 1
- fMhAVI!MhAVI1.BevelSize = 0
- End Select
- End Sub
-