home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form fMultiTabs
- BackColor = &H00C0C0C0&
- Caption = "Spread the Word..."
- ClientHeight = 5895
- ClientLeft = 960
- ClientTop = 795
- ClientWidth = 6435
- Height = 6360
- Left = 870
- LinkTopic = "Form1"
- ScaleHeight = 5895
- ScaleWidth = 6435
- Top = 420
- Width = 6615
- Begin VideoSoftElastic VSElastic1
- Align = 5 'Fill Container
- AutoSizeChildren= 1 'Even Horizontal
- BackColor = &H00C0C0C0&
- BevelInner = 0 'None
- BevelOuter = 1 'Raised
- BevelOuterWidth = 1
- BorderWidth = 20
- Height = 5190
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 6435
- Begin VideoSoftIndexTab VSIndexTab1
- BackSheets = 0 'None
- BorderWidth = 20
- Caption = "&Welcome|&No Label|&Tab in Tab|Design Tip|Spread|&Multirow/Scroll"
- CurrTab = 4
- FirstTab = 3
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- FrontTabColor = &H00C0C0C0&
- Height = 4590
- Left = 300
- MultiRow = -1 'True
- Position = 0 'Top
- ShowFocusRect = 0 'False
- Style = 5 'Chamfered 3D
- TabIndex = 5
- TabsPerPage = 3
- Top = 300
- Width = 5835
- 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 = 3255
- Index = 4
- Left = -9345
- TabIndex = 15
- Top = 990
- Width = 4965
- End
- Begin VideoSoftElastic Page
- AutoSizeChildren= 1 'Even Horizontal
- BackColor = &H00C0C0C0&
- BevelInner = 7 'Shadow
- BevelInnerWidth = 4
- BevelOuter = 6 'Groove
- BorderWidth = 20
- Height = 3255
- Index = 1
- Left = -9315
- TabIndex = 10
- Top = 990
- Width = 4965
- 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 = 2655
- Left = 300
- Position = 2 'Left
- ShowFocusRect = 0 'False
- Style = 2 'Rounded
- TabIndex = 17
- TabsPerPage = 3
- Top = 300
- Width = 4365
- Begin TextBox Text2
- Height = 1905
- Left = 705
- TabIndex = 18
- Text = "Text2"
- Top = 375
- Width = 3285
- 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 = 3255
- Index = 2
- Left = -9300
- TabIndex = 9
- Top = 990
- Width = 4965
- 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 = 3255
- Index = 3
- Left = 345
- TabIndex = 8
- Top = 990
- Width = 4965
- Begin VideoSoftIndexTab VSIndexTab3
- BackSheets = 0 'None
- BorderWidth = 12
- Caption = "Sheet &1|Sheet &2|Sheet &3|Sheet &4"
- FrontTabColor = &H00C0C0C0&
- Height = 2895
- Left = 180
- ShowFocusRect = 0 'False
- Style = 1 'Slanted 3D
- TabIndex = 19
- TabsPerPage = 4
- Top = 180
- Width = 4605
- Begin Grid Grid1
- Cols = 16
- Height = 2175
- Left = 225
- Rows = 16
- TabIndex = 20
- Top = 225
- Width = 4155
- End
- End
- End
- Begin VideoSoftElastic Page
- BackColor = &H00C0C0C0&
- BevelChildren = 2 'No Elastics
- BevelInner = 7 'Shadow
- BevelInnerWidth = 4
- BevelOuter = 6 'Groove
- Height = 3255
- Index = 5
- Left = 10035
- ShadowColor = &H00000000&
- TabIndex = 7
- TagPosition = 1 'Above Control
- TagWidth = 300
- Top = 990
- Width = 4965
- 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
- 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
- BorderWidth = 24
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00800000&
- Height = 3255
- Index = 0
- Left = -9330
- TabIndex = 6
- TagPosition = 1 'Above Control
- TagWidth = 350
- Top = 990
- Width = 4965
- Begin TextBox Text1
- DragIcon = MULTITAB.FRX:0000
- Height = 2190
- Index = 0
- Left = 360
- TabIndex = 16
- Tag = "No-label Feature avobe the control"
- Top = 705
- Width = 4245
- End
- End
- End
- End
- Begin VideoSoftElastic VSElastic3
- Align = 2 'Align Bottom
- AutoSizeChildren= 1 'Even Horizontal
- BackColor = &H00C0C0C0&
- BevelOuter = 1 'Raised
- BevelOuterWidth = 1
- Height = 705
- Left = 0
- TabIndex = 1
- Top = 5190
- Width = 6435
- 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 = 525
- Index = 1
- Left = 90
- TabIndex = 4
- Top = 90
- Width = 2025
- 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 = 525
- Index = 2
- Left = 2205
- TabIndex = 3
- Top = 90
- Width = 2025
- 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 = 525
- Index = 3
- Left = 4320
- TabIndex = 2
- Top = 90
- Width = 2025
- 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)
-
- 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 = 2
- '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)
- End Sub
- Sub Mode_Click (Index As Integer)
- VSIndexTab1.MultiRow = Not VSIndexTab1.MultiRow
- End Sub
- Sub TabsPerPage_Click ()
- VSIndexTab1.TabsPerPage = TabsPerPage.ListIndex + 1
- VSIndexTab1.FirstTab = 6 - VSIndexTab1.TabsPerPage
- End Sub
- Sub Text3_MouseDown (Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
- End Sub
-