Caption = "&Welcome|&Upgrade|&Tab in Tab|Design Tip|Spread|&Multirow/Scroll"
CurrTab = 5
FirstTab = 5
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
FrontTabColor = &H00C0C0C0&
Height = 4650
Left = 300
MultiRow = -1 'True
Position = 0 'Top
ShowFocusRect = 0 'False
Style = 5 'Chamfered 3D
TabIndex = 5
TabsPerPage = 1
Top = 300
Width = 6630
Begin VideoSoftElastic Page
AutoSizeChildren= 1 'Even Horizontal
BackColor = &H00C0C0C0&
BevelInner = 1 'Raised
BevelInnerWidth = 0
BevelOuter = 5 'Fillet
BorderWidth = 20
Caption = "Welcome to VideoSoft's VSVBX 4.0"
CaptionPos = 4 'Center Center
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00800000&
Height = 1980
Index = 4
IntBkg = &H00C0C0C0&
Left = -9705
TabIndex = 15
Top = 2325
Width = 5040
End
Begin VideoSoftElastic Page
AutoSizeChildren= 1 'Even Horizontal
BackColor = &H00C0C0C0&
BevelInner = 7 'Shadow
BevelInnerWidth = 4
BevelOuter = 6 'Groove
BorderWidth = 20
Height = 1980
Index = 1
IntBkg = &H00C0C0C0&
Left = -9555
TabIndex = 10
Top = 2325
Width = 5040
Begin VideoSoftIndexTab VSIndexTab2
BackSheets = 0 'None
BorderWidth = 24
Caption = "Notes|Info|Other"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
FrontTabColor = &H00C0C0C0&
Height = 1380
Left = 300
Position = 2 'Left
ShowFocusRect = 0 'False
Style = 2 'Rounded
TabIndex = 16
TabsPerPage = 3
Top = 300
Width = 4440
Begin TextBox Text2
Height = 630
Left = 720
TabIndex = 17
Text = "Text2"
Top = 375
Width = 3345
End
End
End
Begin VideoSoftElastic Page
BackColor = &H00C0C0C0&
BevelInnerWidth = 0
BevelOuter = 5 'Fillet
Caption = "Autoswitch at design time by double clicking the tab with the right button."
CaptionPos = 4 'Center Center
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1980
Index = 2
IntBkg = &H00C0C0C0&
Left = -9480
TabIndex = 9
Top = 2325
Width = 5040
End
Begin VideoSoftElastic Page
AutoSizeChildren= 1 'Even Horizontal
BackColor = &H00C0C0C0&
BevelInnerWidth = 0
BevelOuter = 6 'Groove
BorderWidth = 12
Caption = "Tab 4"
CaptionPos = 4 'Center Center
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 24
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF0000&
Height = 1980
Index = 3
IntBkg = &H00C0C0C0&
Left = -9405
TabIndex = 8
Top = 2325
Width = 5040
Begin VideoSoftIndexTab VSIndexTab3
BackSheets = 0 'None
BorderWidth = 12
Caption = "Sheet &1|Sheet &2|Sheet &3|Sheet &4"
FrontTabColor = &H00C0C0C0&
Height = 1620
Left = 180
ShowFocusRect = 0 'False
Style = 1 'Slanted 3D
TabIndex = 18
TabsPerPage = 4
Top = 180
Width = 4680
Begin Grid Grid1
Cols = 16
Height = 885
Left = 225
Rows = 16
TabIndex = 19
Top = 225
Width = 4230
End
End
End
Begin VideoSoftElastic Page
BackColor = &H00C0C0C0&
BevelChildren = 2 'No Elastics
BevelInner = 7 'Shadow
BevelInnerWidth = 4
BevelOuter = 6 'Groove
Height = 1980
Index = 5
IntBkg = &H00C0C0C0&
Left = 345
ShadowColor = &H00000000&
TabIndex = 7
TagPosition = 1 'Above Control
TagWidth = 300
Top = 2325
Width = 5040
Begin ComboBox TabsPerPage
Height = 300
Left = 2070
Style = 2 'Dropdown List
TabIndex = 14
Tag = "TabsPerPage"
Top = 420
Width = 1755
End
Begin VideoSoftElastic VSElastic8
BackColor = &H00C0C0C0&
BevelInner = 0 'None
BevelOuter = 6 'Groove
Caption = "Mode"
Height = 1305
IntBkg = &H00C0C0C0&
Left = 300
Style = 1 'Frame Top
TabIndex = 11
Top = 300
Width = 1485
Begin OptionButton Mode
BackColor = &H00C0C0C0&
Caption = "Scroll"
Height = 285
Index = 1
Left = 210
TabIndex = 13
Top = 720
Width = 945
End
Begin OptionButton Mode
BackColor = &H00C0C0C0&
Caption = "MultiRow"
Height = 285
Index = 0
Left = 210
TabIndex = 12
Top = 390
Value = -1 'True
Width = 1245
End
End
End
Begin VideoSoftElastic Page
AutoSizeChildren= 1 'Even Horizontal
BackColor = &H00C0C0C0&
BevelInner = 7 'Shadow
BevelInnerWidth = 4
BevelOuter = 6 'Groove
BorderWidth = 24
Caption = "Upgrade Policy: If you bought VSVBX in '94 you qualify for a *FREE* upgrade. If not there is a $15 upgrade fee. You can upgrade directly from compuserve. The product ID is 2215."
CaptionPos = 4 'Center Center
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00800000&
Height = 1980
Index = 0
IntBkg = &H00C0C0C0&
Left = -9630
TabIndex = 6
TagPosition = 1 'Above Control
TagWidth = 350
Top = 2325
Width = 5040
End
End
End
Begin VideoSoftElastic VSElastic3
Align = 2 'Align Bottom
AutoSizeChildren= 1 'Even Horizontal
BackColor = &H00C0C0C0&
BevelOuter = 1 'Raised
BevelOuterWidth = 1
Height = 585
IntBkg = &H00C0C0C0&
Left = 0
TabIndex = 1
Top = 5250
Width = 7230
Begin CommandButton Button
BackColor = &H00C0C0C0&
Caption = "&Style"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 405
Index = 1
Left = 90
TabIndex = 4
Top = 90
Width = 2295
End
Begin CommandButton Button
BackColor = &H00C0C0C0&
Caption = "&BackTabColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 405
Index = 2
Left = 2475
TabIndex = 3
Top = 90
Width = 2295
End
Begin CommandButton Button
BackColor = &H00C0C0C0&
Caption = "&ForeColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 405
Index = 3
Left = 4860
TabIndex = 2
Top = 90
Width = 2280
End
End
Option Explicit
Sub Button_Click (Index As Integer)
Dim i%
Select Case Index
Case 1 'Changes tab styles
VSIndexTab1.Style = (VSIndexTab1.Style + 1) Mod 6
Case 2 'Changes back tab color
VSIndexTab1.BackTabColor = QBColor(Rnd * 15)
VSIndexTab1.Refresh
Case 3 'Changes Caption text color
VSIndexTab1.ForeColor = QBColor(Rnd * 15)
Case 4 'Changes BackSheets style
VSIndexTab1.MultiRow = Not VSIndexTab1.MultiRow
End Select
End Sub
Sub Form_Load ()
Dim i%, x%, y%
For i = 1 To 3
TabsPerPage.AddItem Str$(i)
Next i
TabsPerPage.ListIndex = 0
'Unique Colors for each tab
VSIndexTab2.TabColor(0) = &H80FF80
VSIndexTab2.TabColor(1) = &H80FFFF
VSIndexTab2.TabColor(2) = &HFFFF80
'Fill up Grid
Grid1.Col = 0
For x = 1 To 15
Grid1.Row = x
Grid1.Text = x
Next x
Grid1.Row = 0
For x = 1 To 15
Grid1.Col = x
Grid1.Text = x
Next x
End Sub
Sub List1_MouseDown (Index%, Button As Integer, Shift As Integer, x As Single, y As Single)