home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form fDialog
- BackColor = &H00C0C0C0&
- Caption = "Multiple Metaphors"
- ClientHeight = 4260
- ClientLeft = 1245
- ClientTop = 1620
- ClientWidth = 7485
- Height = 4725
- Left = 1155
- LinkTopic = "Form1"
- ScaleHeight = 4260
- ScaleWidth = 7485
- Top = 1245
- Width = 7665
- Begin VideoSoftElastic VSElastic1
- Align = 5 'Fill Container
- AutoSizeChildren= 7 'Proportional (Locks Controls)
- BevelChildren = 2 'No Elastics
- BevelInner = 0 'None
- BevelOuter = 1 'Raised
- BevelOuterWidth = 1
- ConvInfo = FDIALOG.FRX:0000
- Height = 4260
- IntBkg = &H00C0C0C0&
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 7485
- Begin ListBox List1
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 2760
- Left = 315
- TabIndex = 5
- Top = 1050
- Width = 1800
- End
- Begin VideoSoftElastic VSElastic2
- BevelInner = 0 'None
- BevelOuter = 9 'Inset New Look
- BevelOuterWidth = 1
- ConvInfo = FDIALOG.FRX:000B
- Height = 435
- IntBkg = &H00C0C0C0&
- Left = 2415
- TabIndex = 2
- Top = 210
- Width = 4425
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "Dynamic Dialog"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Index = 1
- Left = 1575
- TabIndex = 4
- Top = 105
- Width = 2115
- End
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "IndexTab"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Index = 0
- Left = 210
- TabIndex = 3
- Top = 105
- Value = -1 'True
- Width = 1065
- End
- End
- Begin VideoSoftIndexTab VSIndexTab1
- BackSheets = 0 'None
- BorderWidth = 20
- Caption = "Yellow|Green|Blue"
- ConvInfo = FDIALOG.FRX:0016
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- FrontTabColor = &H00C0C0C0&
- Height = 2850
- Left = 2415
- New3D = -1 'True
- Position = 0 'Top
- Style = 9 'CutCorner 3D
- TabIndex = 1
- Top = 1050
- Width = 4425
- Begin VideoSoftElastic VSElastic5
- AutoSizeChildren= 1 'Even Horizontal
- BackColor = &H0080FF80&
- BevelOuter = 8 'Raised New Look
- BorderWidth = 20
- ConvInfo = FDIALOG.FRX:0021
- Height = 1905
- IntBkg = &H0080FF80&
- Left = 10155
- TabIndex = 8
- Top = 615
- Width = 3765
- End
- Begin VideoSoftElastic VSElastic4
- BackColor = &H00FFFF80&
- BevelOuter = 8 'Raised New Look
- ConvInfo = FDIALOG.FRX:002C
- Height = 1905
- IntBkg = &H00FFFF80&
- Left = 10230
- TabIndex = 7
- Top = 615
- Width = 3765
- End
- Begin VideoSoftElastic VSElastic3
- AutoSizeChildren= 1 'Even Horizontal
- BackColor = &H0080FFFF&
- BevelOuter = 8 'Raised New Look
- BorderWidth = 20
- ConvInfo = FDIALOG.FRX:0037
- Height = 1905
- IntBkg = &H0080FFFF&
- Left = 330
- TabIndex = 6
- Top = 615
- Width = 3765
- End
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Drive the IndexTab from another control"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 750
- Left = 315
- TabIndex = 9
- Top = 195
- Visible = 0 'False
- Width = 1740
- End
- End
- Option Explicit
- Sub Form_Load ()
- ' Make list invisible
- List1.Visible = False
- Dim i%
- For i = 0 To vsIndexTab1.NumTabs - 1
- List1.AddItem vsIndexTab1.TabCaption(i)
- Next i
- End Sub
- Sub List1_Click ()
- vsIndexTab1.CurrTab = List1.ListIndex
- End Sub
- Sub Option1_Click (Index As Integer)
- List1.Visible = Not List1.Visible
- Label1.Visible = Not Label1.Visible
- List1.ListIndex = vsIndexTab1.CurrTab
- vsIndexTab1.TabHeight = Index
- End Sub
-