home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / vsocx / demo / indextab.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-01-05  |  32.8 KB  |  842 lines

  1. VERSION 2.00
  2. Begin Form IndexTab 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Double click a tab with the right mouse"
  5.    ClientHeight    =   6075
  6.    ClientLeft      =   495
  7.    ClientTop       =   705
  8.    ClientWidth     =   8265
  9.    Height          =   6540
  10.    Left            =   405
  11.    LinkTopic       =   "Form2"
  12.    ScaleHeight     =   6075
  13.    ScaleWidth      =   8265
  14.    Top             =   330
  15.    Width           =   8445
  16.    Begin VideoSoftElastic ToolTip 
  17.       BevelInner      =   0  'None
  18.       BevelOuterWidth =   1
  19.       BorderWidth     =   1
  20.       Caption         =   "ToolTip"
  21.       CaptionPos      =   4  'Center Center
  22.       ConvInfo        =   INDEXTAB.FRX:0000
  23.       FloodColor      =   &H0080FFFF&
  24.       FloodDirection  =   1  'Right
  25.       FloodPercent    =   100
  26.       FontBold        =   0   'False
  27.       FontItalic      =   0   'False
  28.       FontName        =   "MS Sans Serif"
  29.       FontSize        =   8.25
  30.       FontStrikethru  =   0   'False
  31.       FontUnderline   =   0   'False
  32.       Height          =   255
  33.       IntBkg          =   &H00C0C0C0&
  34.       Left            =   5400
  35.       TabIndex        =   34
  36.       Top             =   5730
  37.       Visible         =   0   'False
  38.       Width           =   615
  39.    End
  40.    Begin VideoSoftElastic MainElastic 
  41.       Align           =   5  'Fill Container
  42.       AutoSizeChildren=   1  'Even Horizontal
  43.       BevelInner      =   0  'None
  44.       BevelOuter      =   1  'Raised
  45.       BevelOuterWidth =   1
  46.       BorderWidth     =   16
  47.       ConvInfo        =   INDEXTAB.FRX:000B
  48.       Height          =   5040
  49.       IntBkg          =   &H00C0C0C0&
  50.       Left            =   0
  51.       MinChildSize    =   3500
  52.       TabIndex        =   0
  53.       Top             =   0
  54.       Width           =   8265
  55.       Begin VideoSoftIndexTab VSIndexTab 
  56.          BackSheets      =   0  'None
  57.          BackTabColor    =   &H0080FF80&
  58.          BorderWidth     =   12
  59.          Caption         =   "&Order|&Notes|&Setup"
  60.          ConvInfo        =   INDEXTAB.FRX:0016
  61.          FontBold        =   -1  'True
  62.          FontItalic      =   0   'False
  63.          FontName        =   "MS Sans Serif"
  64.          FontSize        =   13.5
  65.          FontStrikethru  =   0   'False
  66.          FontUnderline   =   0   'False
  67.          FrontTabColor   =   &H00C0C0C0&
  68.          Height          =   4560
  69.          Left            =   240
  70.          New3D           =   -1  'True
  71.          Position        =   0  'Top
  72.          ShowFocusRect   =   0   'False
  73.          Style           =   5  'Chamfered 3D
  74.          TabIndex        =   1
  75.          TabsPerPage     =   3
  76.          Top             =   240
  77.          Width           =   7785
  78.          Begin VideoSoftElastic Page 
  79.             BevelInner      =   7  'Shadow
  80.             BevelInnerWidth =   4
  81.             BevelOuter      =   8  'Raised New Look
  82.             BorderWidth     =   4
  83.             CaptionPos      =   2  'Left Bottom
  84.             ChildSpacing    =   0
  85.             ConvInfo        =   INDEXTAB.FRX:0021
  86.             FontBold        =   0   'False
  87.             FontItalic      =   0   'False
  88.             FontName        =   "MS Sans Serif"
  89.             FontSize        =   8.25
  90.             FontStrikethru  =   0   'False
  91.             FontUnderline   =   0   'False
  92.             Height          =   3690
  93.             Index           =   2
  94.             IntBkg          =   &H00C0C0C0&
  95.             Left            =   10110
  96.             TabIndex        =   9
  97.             Tag             =   "Setup is the one"
  98.             TagPosition     =   1  'Above
  99.             TagWidth        =   250
  100.             Top             =   660
  101.             Width           =   7365
  102.             Begin CommandButton btn_Shadow 
  103.                BackColor       =   &H00C0C0C0&
  104.                Caption         =   "FrontTabColor"
  105.                FontBold        =   0   'False
  106.                FontItalic      =   0   'False
  107.                FontName        =   "MS Sans Serif"
  108.                FontSize        =   8.25
  109.                FontStrikethru  =   0   'False
  110.                FontUnderline   =   0   'False
  111.                Height          =   555
  112.                Index           =   1
  113.                Left            =   3090
  114.                TabIndex        =   31
  115.                Top             =   1380
  116.                Width           =   1665
  117.             End
  118.             Begin CommandButton btn_Shadow 
  119.                BackColor       =   &H00C0C0C0&
  120.                Caption         =   "Shadow Color"
  121.                FontBold        =   0   'False
  122.                FontItalic      =   0   'False
  123.                FontName        =   "MS Sans Serif"
  124.                FontSize        =   8.25
  125.                FontStrikethru  =   0   'False
  126.                FontUnderline   =   0   'False
  127.                Height          =   585
  128.                Index           =   0
  129.                Left            =   3090
  130.                TabIndex        =   30
  131.                Top             =   2070
  132.                Width           =   1665
  133.             End
  134.             Begin VideoSoftElastic VSElastic2 
  135.                AutoSizeChildren=   3  'Even Vertical
  136.                BevelInner      =   7  'Shadow
  137.                BevelInnerWidth =   4
  138.                BevelOuter      =   8  'Raised New Look
  139.                BevelOuterWidth =   1
  140.                BorderWidth     =   12
  141.                ChildSpacing    =   12
  142.                ConvInfo        =   INDEXTAB.FRX:002C
  143.                Height          =   2505
  144.                IntBkg          =   &H00C0C0C0&
  145.                Left            =   270
  146.                ShadowColor     =   &H00404040&
  147.                TabIndex        =   24
  148.                Top             =   810
  149.                Width           =   2595
  150.                Begin CheckBox Check1 
  151.                   BackColor       =   &H0000FFFF&
  152.                   Caption         =   "Bold Current Tab"
  153.                   FontBold        =   0   'False
  154.                   FontItalic      =   0   'False
  155.                   FontName        =   "MS Sans Serif"
  156.                   FontSize        =   8.25
  157.                   FontStrikethru  =   0   'False
  158.                   FontUnderline   =   0   'False
  159.                   ForeColor       =   &H00000000&
  160.                   Height          =   285
  161.                   Index           =   0
  162.                   Left            =   180
  163.                   TabIndex        =   29
  164.                   Top             =   180
  165.                   Value           =   1  'Checked
  166.                   Width           =   2235
  167.                End
  168.                Begin CheckBox Check1 
  169.                   BackColor       =   &H0000FFFF&
  170.                   Caption         =   "Enable Notes Tab"
  171.                   FontBold        =   0   'False
  172.                   FontItalic      =   0   'False
  173.                   FontName        =   "MS Sans Serif"
  174.                   FontSize        =   8.25
  175.                   FontStrikethru  =   0   'False
  176.                   FontUnderline   =   0   'False
  177.                   Height          =   285
  178.                   Index           =   1
  179.                   Left            =   180
  180.                   TabIndex        =   28
  181.                   Top             =   645
  182.                   Value           =   1  'Checked
  183.                   Width           =   2235
  184.                End
  185.                Begin CheckBox Check1 
  186.                   BackColor       =   &H0000FFFF&
  187.                   Caption         =   "Shadows"
  188.                   FontBold        =   0   'False
  189.                   FontItalic      =   0   'False
  190.                   FontName        =   "MS Sans Serif"
  191.                   FontSize        =   8.25
  192.                   FontStrikethru  =   0   'False
  193.                   FontUnderline   =   0   'False
  194.                   Height          =   285
  195.                   Index           =   2
  196.                   Left            =   180
  197.                   TabIndex        =   27
  198.                   Top             =   1575
  199.                   Value           =   1  'Checked
  200.                   Width           =   2235
  201.                End
  202.                Begin CheckBox Check1 
  203.                   BackColor       =   &H0000FFFF&
  204.                   Caption         =   "Pictures"
  205.                   FontBold        =   0   'False
  206.                   FontItalic      =   0   'False
  207.                   FontName        =   "MS Sans Serif"
  208.                   FontSize        =   8.25
  209.                   FontStrikethru  =   0   'False
  210.                   FontUnderline   =   0   'False
  211.                   Height          =   285
  212.                   Index           =   3
  213.                   Left            =   180
  214.                   TabIndex        =   26
  215.                   Top             =   2040
  216.                   Value           =   1  'Checked
  217.                   Width           =   2235
  218.                End
  219.                Begin CheckBox Check1 
  220.                   BackColor       =   &H0000FFFF&
  221.                   Caption         =   "DogEars"
  222.                   FontBold        =   0   'False
  223.                   FontItalic      =   0   'False
  224.                   FontName        =   "MS Sans Serif"
  225.                   FontSize        =   8.25
  226.                   FontStrikethru  =   0   'False
  227.                   FontUnderline   =   0   'False
  228.                   Height          =   285
  229.                   Index           =   4
  230.                   Left            =   180
  231.                   TabIndex        =   25
  232.                   Top             =   1110
  233.                   Value           =   1  'Checked
  234.                   Width           =   2235
  235.                End
  236.             End
  237.             Begin ComboBox TabsPerPage 
  238.                FontBold        =   0   'False
  239.                FontItalic      =   0   'False
  240.                FontName        =   "MS Sans Serif"
  241.                FontSize        =   8.25
  242.                FontStrikethru  =   0   'False
  243.                FontUnderline   =   0   'False
  244.                ForeColor       =   &H00000000&
  245.                Height          =   300
  246.                Left            =   270
  247.                Style           =   2  'Dropdown List
  248.                TabIndex        =   23
  249.                Tag             =   "TabsPerPage"
  250.                Top             =   330
  251.                Width           =   1995
  252.             End
  253.          End
  254.          Begin VideoSoftElastic Page 
  255.             AutoSizeChildren=   3  'Even Vertical
  256.             BevelInner      =   7  'Shadow
  257.             BevelInnerWidth =   4
  258.             BevelOuter      =   8  'Raised New Look
  259.             BorderWidth     =   12
  260.             CaptionPos      =   6  'Right Top
  261.             ChildSpacing    =   8
  262.             ConvInfo        =   INDEXTAB.FRX:0037
  263.             FontBold        =   0   'False
  264.             FontItalic      =   0   'False
  265.             FontName        =   "MS Sans Serif"
  266.             FontSize        =   8.25
  267.             FontStrikethru  =   0   'False
  268.             FontUnderline   =   0   'False
  269.             Height          =   3690
  270.             Index           =   1
  271.             IntBkg          =   &H00C0C0C0&
  272.             Left            =   10035
  273.             ShadowColor     =   &H00000000&
  274.             TabIndex        =   6
  275.             Tag             =   "Moving over Notes"
  276.             TagWidth        =   700
  277.             Top             =   660
  278.             Width           =   7365
  279.             Begin ListBox List1 
  280.                BackColor       =   &H00E0FFFF&
  281.                FontBold        =   0   'False
  282.                FontItalic      =   0   'False
  283.                FontName        =   "MS Sans Serif"
  284.                FontSize        =   8.25
  285.                FontStrikethru  =   0   'False
  286.                FontUnderline   =   0   'False
  287.                Height          =   1590
  288.                Index           =   1
  289.                Left            =   885
  290.                TabIndex        =   8
  291.                Tag             =   "Notes"
  292.                Top             =   1905
  293.                Width           =   6300
  294.             End
  295.             Begin ListBox List1 
  296.                BackColor       =   &H00E0FFFF&
  297.                FontBold        =   0   'False
  298.                FontItalic      =   0   'False
  299.                FontName        =   "MS Sans Serif"
  300.                FontSize        =   8.25
  301.                FontStrikethru  =   0   'False
  302.                FontUnderline   =   0   'False
  303.                Height          =   1590
  304.                Index           =   0
  305.                Left            =   885
  306.                TabIndex        =   7
  307.                Tag             =   "To Do"
  308.                Top             =   180
  309.                Width           =   6300
  310.             End
  311.          End
  312.          Begin VideoSoftElastic Page 
  313.             AutoSizeChildren=   4  'Uneven Vertical
  314.             BevelChildren   =   2  'No Elastics
  315.             BevelOuter      =   0  'None
  316.             CaptionPos      =   6  'Right Top
  317.             ConvInfo        =   INDEXTAB.FRX:0042
  318.             Height          =   3690
  319.             Index           =   0
  320.             IntBkg          =   &H00C0C0C0&
  321.             Left            =   210
  322.             TabIndex        =   2
  323.             Tag             =   "Moving the mouse on top of the Order tab"
  324.             Top             =   660
  325.             Width           =   7365
  326.             Begin Grid Grid1 
  327.                BackColor       =   &H00FFFFFF&
  328.                Cols            =   5
  329.                FixedCols       =   0
  330.                FontBold        =   -1  'True
  331.                FontItalic      =   0   'False
  332.                FontName        =   "System"
  333.                FontSize        =   9.75
  334.                FontStrikethru  =   0   'False
  335.                FontUnderline   =   0   'False
  336.                ForeColor       =   &H00000000&
  337.                Height          =   1770
  338.                Left            =   90
  339.                Rows            =   20
  340.                ScrollBars      =   0  'None
  341.                TabIndex        =   20
  342.                Top             =   1830
  343.                Width           =   7185
  344.             End
  345.             Begin VideoSoftElastic VSElastic6 
  346.                AutoSizeChildren=   2  'Uneven Horizontal
  347.                BevelChildren   =   2  'No Elastics
  348.                BevelInner      =   8  'Raised New Look
  349.                BevelOuter      =   8  'Raised New Look
  350.                BevelOuterWidth =   1
  351.                BorderWidth     =   12
  352.                ChildSpacing    =   12
  353.                ConvInfo        =   INDEXTAB.FRX:004D
  354.                Height          =   1650
  355.                IntBkg          =   &H00C0C0C0&
  356.                Left            =   90
  357.                TabIndex        =   10
  358.                Top             =   90
  359.                Width           =   7185
  360.                Begin VideoSoftElastic VSElastic3 
  361.                   AccessKey       =   -1  'True
  362.                   AutoSizeChildren=   3  'Even Vertical
  363.                   BevelOuter      =   8  'Raised New Look
  364.                   ChildSpacing    =   -1
  365.                   ConvInfo        =   INDEXTAB.FRX:0058
  366.                   FontBold        =   -1  'True
  367.                   FontItalic      =   0   'False
  368.                   FontName        =   "System"
  369.                   FontSize        =   9.75
  370.                   FontStrikethru  =   0   'False
  371.                   FontUnderline   =   0   'False
  372.                   ForeColor       =   &H000000FF&
  373.                   Height          =   1290
  374.                   IntBkg          =   &H00C0C0C0&
  375.                   Left            =   1890
  376.                   TabIndex        =   11
  377.                   TagWidth        =   700
  378.                   Top             =   180
  379.                   Width           =   5115
  380.                   Begin ComboBox Combo1 
  381.                      BackColor       =   &H00FFFFFF&
  382.                      ForeColor       =   &H00000000&
  383.                      Height          =   300
  384.                      Left            =   795
  385.                      Style           =   2  'Dropdown List
  386.                      TabIndex        =   16
  387.                      Tag             =   "&Bill To"
  388.                      Top             =   90
  389.                      Width           =   4230
  390.                   End
  391.                   Begin TextBox Text1 
  392.                      BackColor       =   &H00FFFFFF&
  393.                      DragIcon        =   INDEXTAB.FRX:0063
  394.                      FontBold        =   0   'False
  395.                      FontItalic      =   0   'False
  396.                      FontName        =   "MS Sans Serif"
  397.                      FontSize        =   8.25
  398.                      FontStrikethru  =   0   'False
  399.                      FontUnderline   =   0   'False
  400.                      ForeColor       =   &H00000000&
  401.                      Height          =   285
  402.                      Index           =   0
  403.                      Left            =   795
  404.                      TabIndex        =   14
  405.                      Text            =   "2625 Alcatraz Avenue, Ste 271"
  406.                      Top             =   375
  407.                      Width           =   4230
  408.                   End
  409.                   Begin TextBox Text1 
  410.                      BackColor       =   &H00FFFFFF&
  411.                      DragIcon        =   INDEXTAB.FRX:0365
  412.                      FontBold        =   0   'False
  413.                      FontItalic      =   0   'False
  414.                      FontName        =   "MS Sans Serif"
  415.                      FontSize        =   8.25
  416.                      FontStrikethru  =   0   'False
  417.                      FontUnderline   =   0   'False
  418.                      ForeColor       =   &H00000000&
  419.                      Height          =   285
  420.                      Index           =   2
  421.                      Left            =   795
  422.                      TabIndex        =   13
  423.                      Text            =   "Berkeley, CA 94705"
  424.                      Top             =   645
  425.                      Width           =   4230
  426.                   End
  427.                   Begin TextBox Text1 
  428.                      BackColor       =   &H00FFFFFF&
  429.                      DragIcon        =   INDEXTAB.FRX:0667
  430.                      FontBold        =   0   'False
  431.                      FontItalic      =   0   'False
  432.                      FontName        =   "MS Sans Serif"
  433.                      FontSize        =   8.25
  434.                      FontStrikethru  =   0   'False
  435.                      FontUnderline   =   0   'False
  436.                      ForeColor       =   &H00000000&
  437.                      Height          =   285
  438.                      Index           =   3
  439.                      Left            =   795
  440.                      TabIndex        =   12
  441.                      Top             =   915
  442.                      Width           =   4230
  443.                   End
  444.                End
  445.                Begin PictureBox Picture1 
  446.                   BackColor       =   &H00FFFF80&
  447.                   BorderStyle     =   0  'None
  448.                   Height          =   1290
  449.                   Left            =   180
  450.                   ScaleHeight     =   1290
  451.                   ScaleWidth      =   1530
  452.                   TabIndex        =   15
  453.                   Top             =   180
  454.                   Width           =   1530
  455.                   Begin Label Label3 
  456.                      Alignment       =   2  'Center
  457.                      BackStyle       =   0  'Transparent
  458.                      Caption         =   "2/2/95"
  459.                      DragIcon        =   INDEXTAB.FRX:0969
  460.                      FontBold        =   -1  'True
  461.                      FontItalic      =   0   'False
  462.                      FontName        =   "System"
  463.                      FontSize        =   9.75
  464.                      FontStrikethru  =   0   'False
  465.                      FontUnderline   =   0   'False
  466.                      Height          =   255
  467.                      Left            =   300
  468.                      TabIndex        =   19
  469.                      Top             =   870
  470.                      Width           =   885
  471.                   End
  472.                   Begin Label Label2 
  473.                      Alignment       =   2  'Center
  474.                      BackStyle       =   0  'Transparent
  475.                      Caption         =   "Order Date"
  476.                      FontBold        =   -1  'True
  477.                      FontItalic      =   0   'False
  478.                      FontName        =   "System"
  479.                      FontSize        =   9.75
  480.                      FontStrikethru  =   0   'False
  481.                      FontUnderline   =   0   'False
  482.                      ForeColor       =   &H00FF0000&
  483.                      Height          =   225
  484.                      Left            =   210
  485.                      TabIndex        =   18
  486.                      Top             =   600
  487.                      Width           =   1155
  488.                   End
  489.                   Begin Label Label1 
  490.                      Alignment       =   2  'Center
  491.                      BackStyle       =   0  'Transparent
  492.                      Caption         =   "Order ID"
  493.                      FontBold        =   -1  'True
  494.                      FontItalic      =   0   'False
  495.                      FontName        =   "System"
  496.                      FontSize        =   9.75
  497.                      FontStrikethru  =   0   'False
  498.                      FontUnderline   =   0   'False
  499.                      ForeColor       =   &H00FF0000&
  500.                      Height          =   285
  501.                      Left            =   150
  502.                      TabIndex        =   17
  503.                      Top             =   150
  504.                      Width           =   1215
  505.                   End
  506.                End
  507.             End
  508.          End
  509.       End
  510.       Begin Image Image1 
  511.          Height          =   330
  512.          Index           =   0
  513.          Left            =   -30
  514.          Picture         =   INDEXTAB.FRX:0C6B
  515.          Stretch         =   -1  'True
  516.          Top             =   1380
  517.          Visible         =   0   'False
  518.          Width           =   330
  519.       End
  520.       Begin Image Image1 
  521.          Height          =   330
  522.          Index           =   1
  523.          Left            =   -30
  524.          Picture         =   INDEXTAB.FRX:0DED
  525.          Stretch         =   -1  'True
  526.          Top             =   1770
  527.          Visible         =   0   'False
  528.          Width           =   330
  529.       End
  530.       Begin Image Image1 
  531.          Height          =   330
  532.          Index           =   2
  533.          Left            =   0
  534.          Picture         =   INDEXTAB.FRX:0F6F
  535.          Stretch         =   -1  'True
  536.          Top             =   2130
  537.          Visible         =   0   'False
  538.          Width           =   330
  539.       End
  540.       Begin Image Image1 
  541.          Height          =   330
  542.          Index           =   3
  543.          Left            =   -60
  544.          Stretch         =   -1  'True
  545.          Top             =   2580
  546.          Visible         =   0   'False
  547.          Width           =   330
  548.       End
  549.    End
  550.    Begin VideoSoftElastic StatusBar 
  551.       Align           =   2  'Bottom
  552.       AutoSizeChildren=   1  'Even Horizontal
  553.       BevelInner      =   0  'None
  554.       BevelInnerWidth =   4
  555.       BevelOuter      =   1  'Raised
  556.       BevelOuterWidth =   1
  557.       BorderWidth     =   8
  558.       ChildSpacing    =   16
  559.       ConvInfo        =   INDEXTAB.FRX:10F1
  560.       Height          =   630
  561.       Index           =   0
  562.       IntBkg          =   &H00C0C0C0&
  563.       Left            =   0
  564.       TabIndex        =   3
  565.       Top             =   5040
  566.       Width           =   8265
  567.       Begin CheckBox chkNew3D 
  568.          BackColor       =   &H00C0C0C0&
  569.          Caption         =   "New 3D"
  570.          FontBold        =   0   'False
  571.          FontItalic      =   0   'False
  572.          FontName        =   "MS Sans Serif"
  573.          FontSize        =   8.25
  574.          FontStrikethru  =   0   'False
  575.          FontUnderline   =   0   'False
  576.          Height          =   390
  577.          Left            =   7020
  578.          TabIndex        =   35
  579.          Top             =   120
  580.          Value           =   1  'Checked
  581.          Width           =   1125
  582.       End
  583.       Begin CommandButton Btn 
  584.          BackColor       =   &H00C0C0C0&
  585.          Caption         =   "&Cool"
  586.          FontBold        =   0   'False
  587.          FontItalic      =   0   'False
  588.          FontName        =   "MS Sans Serif"
  589.          FontSize        =   8.25
  590.          FontStrikethru  =   0   'False
  591.          FontUnderline   =   0   'False
  592.          Height          =   390
  593.          Index           =   4
  594.          Left            =   5640
  595.          TabIndex        =   33
  596.          Tag             =   "Cool"
  597.          Top             =   120
  598.          Width           =   1140
  599.       End
  600.       Begin CommandButton Btn 
  601.          BackColor       =   &H00C0C0C0&
  602.          Caption         =   "&ForeColor"
  603.          FontBold        =   0   'False
  604.          FontItalic      =   0   'False
  605.          FontName        =   "MS Sans Serif"
  606.          FontSize        =   8.25
  607.          FontStrikethru  =   0   'False
  608.          FontUnderline   =   0   'False
  609.          Height          =   390
  610.          Index           =   3
  611.          Left            =   4260
  612.          TabIndex        =   22
  613.          Tag             =   "ForeColor"
  614.          Top             =   120
  615.          Width           =   1140
  616.       End
  617.       Begin CommandButton Btn 
  618.          BackColor       =   &H00C0C0C0&
  619.          Caption         =   "&BackTabColor"
  620.          FontBold        =   0   'False
  621.          FontItalic      =   0   'False
  622.          FontName        =   "MS Sans Serif"
  623.          FontSize        =   8.25
  624.          FontStrikethru  =   0   'False
  625.          FontUnderline   =   0   'False
  626.          Height          =   390
  627.          Index           =   2
  628.          Left            =   2880
  629.          TabIndex        =   21
  630.          Tag             =   "See tabs"
  631.          Top             =   120
  632.          Width           =   1140
  633.       End
  634.       Begin CommandButton Btn 
  635.          BackColor       =   &H00C0C0C0&
  636.          Caption         =   "St&yle"
  637.          FontBold        =   0   'False
  638.          FontItalic      =   0   'False
  639.          FontName        =   "MS Sans Serif"
  640.          FontSize        =   8.25
  641.          FontStrikethru  =   0   'False
  642.          FontUnderline   =   0   'False
  643.          Height          =   390
  644.          Index           =   1
  645.          Left            =   1500
  646.          TabIndex        =   5
  647.          Tag             =   "Style"
  648.          Top             =   120
  649.          Width           =   1140
  650.       End
  651.       Begin CommandButton Btn 
  652.          BackColor       =   &H00C0C0C0&
  653.          Caption         =   "&Position"
  654.          FontBold        =   0   'False
  655.          FontItalic      =   0   'False
  656.          FontName        =   "MS Sans Serif"
  657.          FontSize        =   8.25
  658.          FontStrikethru  =   0   'False
  659.          FontUnderline   =   0   'False
  660.          Height          =   390
  661.          Index           =   0
  662.          Left            =   120
  663.          TabIndex        =   4
  664.          Tag             =   "Position"
  665.          Top             =   120
  666.          Width           =   1140
  667.       End
  668.    End
  669.    Begin VideoSoftElastic StatusBar 
  670.       Align           =   2  'Bottom
  671.       BevelInner      =   0  'None
  672.       BevelOuter      =   1  'Raised
  673.       BevelOuterWidth =   1
  674.       Caption         =   "StatusBar"
  675.       CaptionPos      =   4  'Center Center
  676.       ConvInfo        =   INDEXTAB.FRX:10FC
  677.       ForeColor       =   &H00800000&
  678.       Height          =   405
  679.       Index           =   1
  680.       IntBkg          =   &H00C0C0C0&
  681.       Left            =   0
  682.       TabIndex        =   32
  683.       Top             =   5670
  684.       Width           =   8265
  685.    End
  686. Option Explicit
  687. Dim OldTip
  688. '============================================================
  689. ' To create an IndexTab at design time
  690. '============================================================
  691. ' * Place an IndexTab on your form
  692. ' * Set the Autoswitch to False
  693. ' * Set the Caption for tabs separated by a pipe  (One|Two)
  694. ' * Place one container (Elastic or PictureBox) per tab on
  695. '   the white area of the indextab.  The containers should
  696. '   not touch each other.
  697. ' * Set the Autoswitch to False
  698. ' * Double click with the right mouse on the tab to
  699. '   populate the controls
  700. '============================================================
  701. Sub Btn_Click (Index As Integer)
  702.   Select Case Index
  703.     Case 0    'Changes Tab positions
  704.        vsIndexTab.Position = (vsIndexTab.Position + 1) Mod 5
  705.     Case 1    'Changes tab styles
  706.        vsIndexTab.Style = (vsIndexTab.Style + 1) Mod 10
  707.        
  708.     Case 2    'Changes back tab color
  709.         ' disable pictures
  710.         Dim i%
  711.         Check1(3).Value = 0
  712.         For i = 0 To 2
  713.           vsIndexTab.TabPicture(i) = Image1(3)
  714.         Next
  715.         vsIndexTab.BackTabColor = QBColor(Rnd * 15)
  716.     Case 3    'Changes Caption text color
  717.        vsIndexTab.ForeColor = QBColor(Rnd * 15)
  718.     Case 4    'Cool
  719.        MsgBox "Click VideoSoft Address with the right button, drag it to Notes tab, and drop it in one of the List boxes.  WAY COOL!!"
  720.        
  721.   End Select
  722. End Sub
  723. Sub Btn_MouseMove (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  724.  If OldTip = Index Then Exit Sub
  725.  ToolTip.Visible = True
  726.  ToolTip.Caption = Btn(Index).Tag
  727.  ToolTip.Width = TextWidth(Btn(Index).Tag)
  728.  ToolTip.Move Btn(Index).Left + Btn(Index).Height * .75, StatusBar(0).Top + Btn(Index).Top + Btn(Index).Height * 1.1
  729.  OldTip = Index
  730. End Sub
  731. Sub btn_Shadow_Click (Index%)
  732.   Select Case Index
  733.     Case 0
  734.       Page(2).ShadowColor = QBColor(Rnd * 15)
  735.     Case 1
  736.       vsIndexTab.FrontTabForeColor = QBColor(Rnd * 15)
  737.   End Select
  738. End Sub
  739. Sub Check1_Click (Index%)
  740.   Dim i%
  741.   Select Case Index
  742.     Case 0  'BoldCurrentTab
  743.       vsIndexTab.BoldCurrent = Not vsIndexTab.BoldCurrent
  744.     Case 1  'Enable/Disable Notes Tab
  745.       vsIndexTab.TabEnabled(1) = Not vsIndexTab.TabEnabled(1)
  746.       vsIndexTab.Refresh
  747.     Case 2  'Shadows
  748.       If Check1(2).Value = 0 Then
  749.         Page(2).BevelInnerWidth = 1
  750.         Page(2).BevelInner = 3        'Inset
  751.       Else
  752.         Page(2).BevelInnerWidth = 4
  753.         Page(2).BevelInner = 7        'Shadows
  754.       End If
  755.     Case 3  'Pictures
  756.         If Check1(3).Value = 1 Then
  757.           For i = 0 To 2
  758.             vsIndexTab.TabPicture(i) = Image1(i)
  759.           Next
  760.           vsIndexTab.BackTabColor = &HC0C0C0
  761.         Else
  762.           For i = 0 To 2
  763.             vsIndexTab.TabPicture(i) = Image1(3)
  764.           Next
  765.         End If
  766.     Case 4  'DogEars
  767.       vsIndexTab.DogEars = Not vsIndexTab.DogEars
  768.             
  769.     End Select
  770. End Sub
  771. Sub chkNew3D_Click ()
  772.     vsIndexTab.New3D = Not vsIndexTab.New3D
  773. End Sub
  774. Sub Form_Load ()
  775.   Me.Caption = "VideoSoft Indextab"
  776.   'Fill lists and Combox
  777.   TabsPerPage.AddItem "1"
  778.   TabsPerPage.AddItem "2"
  779.   TabsPerPage.AddItem "3"
  780.   TabsPerPage.ListIndex = 2
  781.   Combo1.AddItem "VideoSoft"
  782.   Combo1.ListIndex = 0
  783.   ' show pictures
  784.   Check1_Click 3
  785.   Grid1.Row = 0
  786.   Grid1.Col = 0
  787.   Grid1.ColWidth(0) = 1000
  788.   Grid1.Text = "Prod ID"
  789.   Grid1.Col = 1
  790.   Grid1.ColWidth(1) = 2500
  791.   Grid1.Text = "Description"
  792.   Grid1.Col = 2
  793.   Grid1.Text = "Qty"
  794.   Grid1.Col = 3
  795.   Grid1.ColWidth(3) = 4500
  796.   Grid1.Text = "Price"
  797. End Sub
  798. Sub Form_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  799.   ToolTip.Visible = False
  800. End Sub
  801. Sub Label3_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  802.  If Button = 2 Then Label3.Drag 1
  803. End Sub
  804. Sub List1_DragDrop (Index As Integer, Source As Control, X As Single, Y As Single)
  805.   List1(Index).AddItem Source
  806. End Sub
  807. Sub MainElastic_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  808.   ToolTip.Visible = False
  809.   OldTip = -1
  810. End Sub
  811. Sub StatusBar_MouseMove (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  812.   ToolTip.Visible = False
  813.   OldTip = -1
  814. End Sub
  815. Sub TabsPerPage_Click ()
  816.   vsIndexTab.TabsPerPage = TabsPerPage.ListIndex + 1
  817.   vsIndexTab.FirstTab = 3 - vsIndexTab.TabsPerPage
  818.   'Enable DogEars option
  819.   If vsIndexTab.TabsPerPage = 3 Then
  820.     Check1(4).Enabled = False
  821.   Else
  822.     Check1(4).Enabled = True
  823.   End If
  824. End Sub
  825. Sub Text1_MouseDown (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  826.   If Button = 2 Then Text1(Index).Drag 1
  827. End Sub
  828. Sub VSIndexTab_DragOver (Source As Control, X As Single, Y As Single, State As Integer)
  829.   If vsIndexTab.MouseOver <> -1 Then vsIndexTab.CurrTab = vsIndexTab.MouseOver
  830. End Sub
  831. Sub VSIndexTab_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  832.   ToolTip.Visible = False
  833.   On Error Resume Next
  834.   If vsIndexTab.MouseOver = -1 Then
  835.     ' Current page
  836.     If StatusBar(1) <> "Current Page" Then StatusBar(1) = "Current Page"
  837.   Else
  838.     ' Move Over other page
  839.     If StatusBar(1) <> Page(vsIndexTab.MouseOver).Tag Then StatusBar(1) = Page(vsIndexTab.MouseOver).Tag
  840.   End If
  841. End Sub
  842.