home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / tabframe / tabdemo.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-09-06  |  60.5 KB  |  1,620 lines

  1. VERSION 2.00
  2. Begin Form frmTabDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "TabFrame Demo V1.4"
  5.    ClientHeight    =   5280
  6.    ClientLeft      =   930
  7.    ClientTop       =   2820
  8.    ClientWidth     =   7890
  9.    Height          =   5685
  10.    Left            =   870
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   5280
  13.    ScaleWidth      =   7890
  14.    Top             =   2475
  15.    Width           =   8010
  16.    Begin CommandButton cmdHelp 
  17.       Caption         =   "Help"
  18.       Height          =   375
  19.       Left            =   6540
  20.       TabIndex        =   109
  21.       Top             =   4800
  22.       Width           =   1155
  23.    End
  24.    Begin GSTabFrame GSTabFrame1 
  25.       BackColor       =   &H00C0C0C0&
  26.       BufferDisplay   =   -1  'True
  27.       Caption         =   "&General"
  28.       FocusTab        =   -1  'True
  29.       Height          =   4275
  30.       Index           =   0
  31.       Left            =   120
  32.       TabGroup        =   0
  33.       TabIndex        =   1
  34.       TabNumber       =   0
  35.       Top             =   420
  36.       Width           =   7635
  37.       Begin Label Label23 
  38.          BackStyle       =   0  'Transparent
  39.          Caption         =   "Switching between tabs in design mode is made simple through the use of the right mouse button."
  40.          Height          =   435
  41.          Left            =   180
  42.          TabIndex        =   5
  43.          Top             =   3120
  44.          Width           =   7095
  45.       End
  46.       Begin Label Label22 
  47.          BackStyle       =   0  'Transparent
  48.          Caption         =   "If you have any comments or suggestions concerning this control then please contact Graham Cockell (Compuserve ID 100113, 2774) via e-mail or on the Compuserve MSBASIC forum."
  49.          Height          =   615
  50.          Left            =   180
  51.          TabIndex        =   4
  52.          Top             =   2400
  53.          Width           =   7035
  54.       End
  55.       Begin Label Label21 
  56.          BackStyle       =   0  'Transparent
  57.          Caption         =   "This demonstration shows some of the capabilities of the TabFrame control including various display styles and the ability to nest one set of TabFrame controls within another - see the Property and Event tabs."
  58.          Height          =   615
  59.          Left            =   180
  60.          TabIndex        =   3
  61.          Top             =   1680
  62.          Width           =   7155
  63.       End
  64.       Begin Label Label20 
  65.          BackStyle       =   0  'Transparent
  66.          Caption         =   "This product is distributed as shareware and registration details are provided in this demonstration and in the help file."
  67.          Height          =   375
  68.          Left            =   180
  69.          TabIndex        =   6
  70.          Top             =   3660
  71.          Width           =   7155
  72.       End
  73.       Begin Label Label19 
  74.          BackStyle       =   0  'Transparent
  75.          Caption         =   "The TabFrame control allows you to quikly and easily build a tabbed dialog style user interface, as popularised in Microsoft Word V6.0, using Visual Basic. The TabFrame control handles all the details of which tab should be visible as well as providing a number of other useful features such as 3D effects for child controls."
  76.          Height          =   795
  77.          Left            =   180
  78.          TabIndex        =   2
  79.          Top             =   780
  80.          Width           =   7155
  81.       End
  82.    End
  83.    Begin GSTabFrame GSTabFrame1 
  84.       BackColor       =   &H00C0C0C0&
  85.       BufferDisplay   =   -1  'True
  86.       Caption         =   "&Events"
  87.       FocusTab        =   -1  'True
  88.       FontBold        =   0   'False
  89.       FontItalic      =   0   'False
  90.       FontName        =   "MS Sans Serif"
  91.       FontSize        =   8.25
  92.       FontStrikethru  =   0   'False
  93.       FontUnderline   =   0   'False
  94.       Height          =   4275
  95.       Index           =   2
  96.       Left            =   120
  97.       TabGroup        =   1
  98.       TabIndex        =   76
  99.       TabNumber       =   1
  100.       Top             =   420
  101.       Width           =   7635
  102.       Begin GSTabFrame GSTabFrame3 
  103.          ActiveColor     =   &H0080FFFF&
  104.          BackColor       =   &H00C0C0C0&
  105.          Caption         =   "Custom"
  106.          FocusTab        =   -1  'True
  107.          Height          =   3075
  108.          InactiveColor   =   &H00FFFF80&
  109.          Index           =   0
  110.          Left            =   360
  111.          Position        =   1  'Bottom
  112.          Style           =   0  '2D
  113.          TabGroup        =   0
  114.          TabIndex        =   77
  115.          TabNumber       =   0
  116.          Top             =   900
  117.          Width           =   6795
  118.          Begin ComboBox cboEventName 
  119.             Height          =   300
  120.             Left            =   1620
  121.             Sorted          =   -1  'True
  122.             Style           =   2  'Dropdown List
  123.             TabIndex        =   79
  124.             Top             =   180
  125.             Width           =   4875
  126.          End
  127.          Begin TextBox txtEventDesc 
  128.             BackColor       =   &H00FFFFFF&
  129.             Enabled         =   0   'False
  130.             Height          =   1875
  131.             Left            =   1620
  132.             MultiLine       =   -1  'True
  133.             TabIndex        =   81
  134.             Text            =   "txtEventDesc"
  135.             Top             =   660
  136.             Width           =   4875
  137.          End
  138.          Begin Label Label1 
  139.             BackStyle       =   0  'Transparent
  140.             Caption         =   "Event:"
  141.             Height          =   195
  142.             Index           =   2
  143.             Left            =   240
  144.             TabIndex        =   78
  145.             Top             =   240
  146.             Width           =   1095
  147.          End
  148.          Begin Label Label1 
  149.             BackStyle       =   0  'Transparent
  150.             Caption         =   "Description:"
  151.             Height          =   195
  152.             Index           =   3
  153.             Left            =   240
  154.             TabIndex        =   80
  155.             Top             =   660
  156.             Width           =   1095
  157.          End
  158.       End
  159.       Begin GSTabFrame GSTabFrame3 
  160.          ActiveColor     =   &H0080FFFF&
  161.          BackColor       =   &H00C0C0C0&
  162.          Caption         =   "Standard"
  163.          FocusTab        =   -1  'True
  164.          FontBold        =   0   'False
  165.          FontItalic      =   0   'False
  166.          FontName        =   "MS Sans Serif"
  167.          FontSize        =   8.25
  168.          FontStrikethru  =   0   'False
  169.          FontUnderline   =   0   'False
  170.          Height          =   3075
  171.          InactiveColor   =   &H00FFFF80&
  172.          Index           =   1
  173.          Left            =   360
  174.          Position        =   1  'Bottom
  175.          Style           =   0  '2D
  176.          TabGroup        =   0
  177.          TabIndex        =   82
  178.          TabNumber       =   1
  179.          Top             =   900
  180.          Width           =   6795
  181.          Begin Label Label7 
  182.             BackStyle       =   0  'Transparent
  183.             Caption         =   "LostFocus"
  184.             Height          =   195
  185.             Index           =   8
  186.             Left            =   2580
  187.             TabIndex        =   89
  188.             Top             =   840
  189.             Width           =   975
  190.          End
  191.          Begin Label Label7 
  192.             BackStyle       =   0  'Transparent
  193.             Caption         =   "GotFocus"
  194.             Height          =   195
  195.             Index           =   7
  196.             Left            =   2580
  197.             TabIndex        =   88
  198.             Top             =   600
  199.             Width           =   915
  200.          End
  201.          Begin Label Label7 
  202.             BackStyle       =   0  'Transparent
  203.             Caption         =   "MouseMove"
  204.             Height          =   195
  205.             Index           =   6
  206.             Left            =   5160
  207.             TabIndex        =   92
  208.             Top             =   600
  209.             Width           =   1275
  210.          End
  211.          Begin Label Label7 
  212.             BackStyle       =   0  'Transparent
  213.             Caption         =   "MouseUp"
  214.             Height          =   195
  215.             Index           =   5
  216.             Left            =   3780
  217.             TabIndex        =   91
  218.             Top             =   840
  219.             Width           =   1335
  220.          End
  221.          Begin Label Label7 
  222.             BackStyle       =   0  'Transparent
  223.             Caption         =   "MouseDown"
  224.             Height          =   195
  225.             Index           =   4
  226.             Left            =   3780
  227.             TabIndex        =   90
  228.             Top             =   600
  229.             Width           =   1275
  230.          End
  231.          Begin Label Label7 
  232.             BackStyle       =   0  'Transparent
  233.             Caption         =   "DragOver"
  234.             Height          =   195
  235.             Index           =   3
  236.             Left            =   1440
  237.             TabIndex        =   87
  238.             Top             =   840
  239.             Width           =   855
  240.          End
  241.          Begin Label Label7 
  242.             BackStyle       =   0  'Transparent
  243.             Caption         =   "DragDrop"
  244.             Height          =   195
  245.             Index           =   2
  246.             Left            =   1440
  247.             TabIndex        =   86
  248.             Top             =   600
  249.             Width           =   855
  250.          End
  251.          Begin Label Label7 
  252.             BackStyle       =   0  'Transparent
  253.             Caption         =   "DblClick"
  254.             Height          =   195
  255.             Index           =   1
  256.             Left            =   480
  257.             TabIndex        =   85
  258.             Top             =   840
  259.             Width           =   855
  260.          End
  261.          Begin Label Label7 
  262.             BackStyle       =   0  'Transparent
  263.             Caption         =   "Click"
  264.             Height          =   195
  265.             Index           =   0
  266.             Left            =   480
  267.             TabIndex        =   84
  268.             Top             =   600
  269.             Width           =   855
  270.          End
  271.          Begin Label Label6 
  272.             BackStyle       =   0  'Transparent
  273.             Caption         =   "The following standard events are supported by the TabFrame control :-"
  274.             Height          =   195
  275.             Left            =   180
  276.             TabIndex        =   83
  277.             Top             =   180
  278.             Width           =   6495
  279.          End
  280.       End
  281.    End
  282.    Begin GSTabFrame GSTabFrame1 
  283.       BackColor       =   &H00C0C0C0&
  284.       BufferDisplay   =   -1  'True
  285.       Caption         =   "&Registration"
  286.       FocusTab        =   -1  'True
  287.       FontBold        =   0   'False
  288.       FontItalic      =   0   'False
  289.       FontName        =   "MS Sans Serif"
  290.       FontSize        =   8.25
  291.       FontStrikethru  =   0   'False
  292.       FontUnderline   =   0   'False
  293.       Height          =   4275
  294.       Index           =   4
  295.       Left            =   120
  296.       TabGroup        =   0
  297.       TabIndex        =   7
  298.       TabNumber       =   1
  299.       Top             =   420
  300.       Width           =   7635
  301.       Begin Label Label26 
  302.          BackStyle       =   0  'Transparent
  303.          Caption         =   "Registered versions will be sent out by e-mail unless otherwise specified."
  304.          Height          =   255
  305.          Left            =   300
  306.          TabIndex        =   18
  307.          Top             =   3900
  308.          Width           =   6915
  309.       End
  310.       Begin Label Label17 
  311.          BackStyle       =   0  'Transparent
  312.          Caption         =   "ENGLAND"
  313.          Height          =   195
  314.          Left            =   1200
  315.          TabIndex        =   17
  316.          Top             =   3600
  317.          Width           =   3255
  318.       End
  319.       Begin Label Label16 
  320.          BackStyle       =   0  'Transparent
  321.          Caption         =   "Derbyshire DE6 1PR"
  322.          Height          =   195
  323.          Left            =   1200
  324.          TabIndex        =   16
  325.          Top             =   3420
  326.          Width           =   3255
  327.       End
  328.       Begin Label Label15 
  329.          BackStyle       =   0  'Transparent
  330.          Caption         =   "Ashbourne"
  331.          Height          =   195
  332.          Left            =   1200
  333.          TabIndex        =   15
  334.          Top             =   3240
  335.          Width           =   3255
  336.       End
  337.       Begin Label Label14 
  338.          BackStyle       =   0  'Transparent
  339.          Caption         =   "Hognaston"
  340.          Height          =   195
  341.          Left            =   1200
  342.          TabIndex        =   14
  343.          Top             =   3060
  344.          Width           =   3255
  345.       End
  346.       Begin Label Label13 
  347.          BackStyle       =   0  'Transparent
  348.          Caption         =   "Fellsgarth House"
  349.          Height          =   195
  350.          Left            =   1200
  351.          TabIndex        =   13
  352.          Top             =   2880
  353.          Width           =   3255
  354.       End
  355.       Begin Label Label12 
  356.          BackStyle       =   0  'Transparent
  357.          Caption         =   "GC Consulting Services Ltd"
  358.          Height          =   195
  359.          Left            =   1200
  360.          TabIndex        =   12
  361.          Top             =   2700
  362.          Width           =   3255
  363.       End
  364.       Begin Label Label11 
  365.          BackStyle       =   0  'Transparent
  366.          Caption         =   "2) By sending a cheque or money order for 
  367. 25 to :"
  368.          Height          =   255
  369.          Left            =   240
  370.          TabIndex        =   11
  371.          Top             =   2400
  372.          Width           =   6795
  373.       End
  374.       Begin Label Label10 
  375.          BackStyle       =   0  'Transparent
  376.          Caption         =   "1) Through the SWREG forum on Compuserve. The fee is $39.95 and the registration ID is 2018."
  377.          Height          =   435
  378.          Left            =   240
  379.          TabIndex        =   10
  380.          Top             =   1920
  381.          Width           =   6915
  382.       End
  383.       Begin Label Label9 
  384.          BackStyle       =   0  'Transparent
  385.          Caption         =   "If you find the TabFrame control useful you can receive a full version by registering as follows :"
  386.          Height          =   435
  387.          Left            =   240
  388.          TabIndex        =   9
  389.          Top             =   1440
  390.          Width           =   6855
  391.       End
  392.       Begin Label Label8 
  393.          BackStyle       =   0  'Transparent
  394.          Caption         =   "This demonstration includes a fully functional version of the TabFrame control which may be used in the Visual Basic development environment only. It cannot be used in conjunction with an EXE file produced from Visual Basic."
  395.          Height          =   615
  396.          Left            =   240
  397.          TabIndex        =   8
  398.          Top             =   780
  399.          Width           =   7035
  400.       End
  401.    End
  402.    Begin GSTabFrame GSTabFrame1 
  403.       BackColor       =   &H00C0C0C0&
  404.       BufferDisplay   =   -1  'True
  405.       Caption         =   "&Properties"
  406.       FocusTab        =   -1  'True
  407.       FontBold        =   0   'False
  408.       FontItalic      =   0   'False
  409.       FontName        =   "MS Sans Serif"
  410.       FontSize        =   8.25
  411.       FontStrikethru  =   0   'False
  412.       FontUnderline   =   0   'False
  413.       Height          =   4275
  414.       Index           =   1
  415.       Left            =   120
  416.       TabGroup        =   1
  417.       TabIndex        =   40
  418.       TabNumber       =   0
  419.       Top             =   420
  420.       Width           =   7635
  421.       Begin GSTabFrame GSTabFrame2 
  422.          ActiveColor     =   &H0080FFFF&
  423.          BackColor       =   &H00C0C0C0&
  424.          Caption         =   "Custom"
  425.          FocusTab        =   -1  'True
  426.          Height          =   3075
  427.          InactiveColor   =   &H00FFFF80&
  428.          Index           =   0
  429.          Left            =   360
  430.          Position        =   1  'Bottom
  431.          Style           =   0  '2D
  432.          TabGroup        =   0
  433.          TabIndex        =   41
  434.          TabNumber       =   0
  435.          Top             =   900
  436.          Width           =   6795
  437.          Begin TextBox txtpropDesc 
  438.             BackColor       =   &H00FFFFFF&
  439.             Enabled         =   0   'False
  440.             Height          =   1875
  441.             Left            =   1620
  442.             MultiLine       =   -1  'True
  443.             TabIndex        =   45
  444.             Text            =   "txtPropDesc"
  445.             Top             =   660
  446.             Width           =   4875
  447.          End
  448.          Begin ComboBox cboPropName 
  449.             Height          =   300
  450.             Left            =   1620
  451.             Sorted          =   -1  'True
  452.             Style           =   2  'Dropdown List
  453.             TabIndex        =   43
  454.             Top             =   180
  455.             Width           =   4875
  456.          End
  457.          Begin Label Label1 
  458.             BackStyle       =   0  'Transparent
  459.             Caption         =   "Description:"
  460.             Height          =   195
  461.             Index           =   1
  462.             Left            =   240
  463.             TabIndex        =   44
  464.             Top             =   660
  465.             Width           =   1095
  466.          End
  467.          Begin Label Label1 
  468.             BackStyle       =   0  'Transparent
  469.             Caption         =   "Property:"
  470.             Height          =   195
  471.             Index           =   0
  472.             Left            =   240
  473.             TabIndex        =   42
  474.             Top             =   240
  475.             Width           =   1095
  476.          End
  477.       End
  478.       Begin GSTabFrame GSTabFrame2 
  479.          ActiveColor     =   &H0080FFFF&
  480.          BackColor       =   &H00C0C0C0&
  481.          Caption         =   "Standard"
  482.          FocusTab        =   -1  'True
  483.          FontBold        =   0   'False
  484.          FontItalic      =   0   'False
  485.          FontName        =   "MS Sans Serif"
  486.          FontSize        =   8.25
  487.          FontStrikethru  =   0   'False
  488.          FontUnderline   =   0   'False
  489.          Height          =   3075
  490.          InactiveColor   =   &H00FFFF80&
  491.          Index           =   1
  492.          Left            =   360
  493.          Position        =   1  'Bottom
  494.          Style           =   0  '2D
  495.          TabGroup        =   0
  496.          TabIndex        =   46
  497.          TabNumber       =   1
  498.          Top             =   900
  499.          Width           =   6795
  500.          Begin Label Label4 
  501.             BackStyle       =   0  'Transparent
  502.             Caption         =   "TabStop"
  503.             Height          =   195
  504.             Index           =   24
  505.             Left            =   4320
  506.             TabIndex        =   70
  507.             Top             =   1440
  508.             Width           =   915
  509.          End
  510.          Begin Label Label5 
  511.             BackStyle       =   0  'Transparent
  512.             Caption         =   "Several of these properties are synchronised across the TabFrame controls which make up a TabSet so that changing the property value for any one of the controls automatically changes the value for all the others."
  513.             Height          =   555
  514.             Left            =   180
  515.             TabIndex        =   75
  516.             Top             =   2040
  517.             Width           =   6495
  518.          End
  519.          Begin Label Label4 
  520.             BackStyle       =   0  'Transparent
  521.             Caption         =   "FontStrikethru"
  522.             Height          =   195
  523.             Index           =   29
  524.             Left            =   1560
  525.             TabIndex        =   59
  526.             Top             =   1680
  527.             Width           =   1275
  528.          End
  529.          Begin Label Label4 
  530.             BackStyle       =   0  'Transparent
  531.             Caption         =   "FontSize"
  532.             Height          =   195
  533.             Index           =   28
  534.             Left            =   1560
  535.             TabIndex        =   58
  536.             Top             =   1440
  537.             Width           =   1215
  538.          End
  539.          Begin Label Label4 
  540.             BackStyle       =   0  'Transparent
  541.             Caption         =   "Width"
  542.             Height          =   195
  543.             Index           =   23
  544.             Left            =   5700
  545.             TabIndex        =   74
  546.             Top             =   960
  547.             Width           =   675
  548.          End
  549.          Begin Label Label4 
  550.             BackStyle       =   0  'Transparent
  551.             Caption         =   "Visible"
  552.             Height          =   195
  553.             Index           =   22
  554.             Left            =   5700
  555.             TabIndex        =   73
  556.             Top             =   720
  557.             Width           =   795
  558.          End
  559.          Begin Label Label4 
  560.             BackStyle       =   0  'Transparent
  561.             Caption         =   "Top"
  562.             Height          =   195
  563.             Index           =   21
  564.             Left            =   5700
  565.             TabIndex        =   72
  566.             Top             =   480
  567.             Width           =   975
  568.          End
  569.          Begin Label Label4 
  570.             BackStyle       =   0  'Transparent
  571.             Caption         =   "Tag"
  572.             Height          =   195
  573.             Index           =   20
  574.             Left            =   4320
  575.             TabIndex        =   71
  576.             Top             =   1680
  577.             Width           =   1095
  578.          End
  579.          Begin Label Label4 
  580.             BackStyle       =   0  'Transparent
  581.             Caption         =   "TabIndex"
  582.             Height          =   195
  583.             Index           =   19
  584.             Left            =   4320
  585.             TabIndex        =   69
  586.             Top             =   1200
  587.             Width           =   1095
  588.          End
  589.          Begin Label Label4 
  590.             BackStyle       =   0  'Transparent
  591.             Caption         =   "Parent"
  592.             Height          =   195
  593.             Index           =   18
  594.             Left            =   4320
  595.             TabIndex        =   68
  596.             Top             =   960
  597.             Width           =   1095
  598.          End
  599.          Begin Label Label4 
  600.             BackStyle       =   0  'Transparent
  601.             Caption         =   "MousePointer"
  602.             Height          =   195
  603.             Index           =   17
  604.             Left            =   4320
  605.             TabIndex        =   67
  606.             Top             =   720
  607.             Width           =   1275
  608.          End
  609.          Begin Label Label4 
  610.             BackStyle       =   0  'Transparent
  611.             Caption         =   "Left"
  612.             Height          =   195
  613.             Index           =   16
  614.             Left            =   4320
  615.             TabIndex        =   66
  616.             Top             =   480
  617.             Width           =   1095
  618.          End
  619.          Begin Label Label4 
  620.             BackStyle       =   0  'Transparent
  621.             Caption         =   "Index"
  622.             Height          =   195
  623.             Index           =   15
  624.             Left            =   2940
  625.             TabIndex        =   65
  626.             Top             =   1680
  627.             Width           =   1095
  628.          End
  629.          Begin Label Label4 
  630.             BackStyle       =   0  'Transparent
  631.             Caption         =   "Hwnd"
  632.             Height          =   195
  633.             Index           =   14
  634.             Left            =   2940
  635.             TabIndex        =   64
  636.             Top             =   1440
  637.             Width           =   1095
  638.          End
  639.          Begin Label Label4 
  640.             BackStyle       =   0  'Transparent
  641.             Caption         =   "HelpContextID"
  642.             Height          =   195
  643.             Index           =   13
  644.             Left            =   2940
  645.             TabIndex        =   63
  646.             Top             =   1200
  647.             Width           =   1095
  648.          End
  649.          Begin Label Label4 
  650.             BackStyle       =   0  'Transparent
  651.             Caption         =   "Height"
  652.             Height          =   195
  653.             Index           =   12
  654.             Left            =   2940
  655.             TabIndex        =   62
  656.             Top             =   960
  657.             Width           =   1095
  658.          End
  659.          Begin Label Label4 
  660.             BackStyle       =   0  'Transparent
  661.             Caption         =   "ForeColor"
  662.             Height          =   195
  663.             Index           =   11
  664.             Left            =   2940
  665.             TabIndex        =   61
  666.             Top             =   720
  667.             Width           =   1095
  668.          End
  669.          Begin Label Label4 
  670.             BackStyle       =   0  'Transparent
  671.             Caption         =   "FontUnderline"
  672.             Height          =   195
  673.             Index           =   10
  674.             Left            =   2940
  675.             TabIndex        =   60
  676.             Top             =   480
  677.             Width           =   1275
  678.          End
  679.          Begin Label Label4 
  680.             BackStyle       =   0  'Transparent
  681.             Caption         =   "DragMode"
  682.             Height          =   195
  683.             Index           =   9
  684.             Left            =   300
  685.             TabIndex        =   53
  686.             Top             =   1680
  687.             Width           =   1215
  688.          End
  689.          Begin Label Label4 
  690.             BackStyle       =   0  'Transparent
  691.             Caption         =   "DragIcon"
  692.             Height          =   195
  693.             Index           =   8
  694.             Left            =   300
  695.             TabIndex        =   52
  696.             Top             =   1440
  697.             Width           =   1215
  698.          End
  699.          Begin Label Label4 
  700.             BackStyle       =   0  'Transparent
  701.             Caption         =   "FontName"
  702.             Height          =   195
  703.             Index           =   7
  704.             Left            =   1560
  705.             TabIndex        =   57
  706.             Top             =   1200
  707.             Width           =   1215
  708.          End
  709.          Begin Label Label4 
  710.             BackStyle       =   0  'Transparent
  711.             Caption         =   "FontItalic"
  712.             Height          =   195
  713.             Index           =   6
  714.             Left            =   1560
  715.             TabIndex        =   56
  716.             Top             =   960
  717.             Width           =   1215
  718.          End
  719.          Begin Label Label4 
  720.             BackStyle       =   0  'Transparent
  721.             Caption         =   "FontBold"
  722.             Height          =   195
  723.             Index           =   5
  724.             Left            =   1560
  725.             TabIndex        =   55
  726.             Top             =   720
  727.             Width           =   1215
  728.          End
  729.          Begin Label Label4 
  730.             BackStyle       =   0  'Transparent
  731.             Caption         =   "Enabled"
  732.             Height          =   195
  733.             Index           =   4
  734.             Left            =   1560
  735.             TabIndex        =   54
  736.             Top             =   480
  737.             Width           =   1215
  738.          End
  739.          Begin Label Label4 
  740.             BackStyle       =   0  'Transparent
  741.             Caption         =   "ClipControls"
  742.             Height          =   195
  743.             Index           =   3
  744.             Left            =   300
  745.             TabIndex        =   51
  746.             Top             =   1200
  747.             Width           =   1215
  748.          End
  749.          Begin Label Label4 
  750.             BackStyle       =   0  'Transparent
  751.             Caption         =   "Caption"
  752.             Height          =   195
  753.             Index           =   2
  754.             Left            =   300
  755.             TabIndex        =   50
  756.             Top             =   960
  757.             Width           =   1215
  758.          End
  759.          Begin Label Label4 
  760.             BackStyle       =   0  'Transparent
  761.             Caption         =   "BorderStyle"
  762.             Height          =   195
  763.             Index           =   1
  764.             Left            =   300
  765.             TabIndex        =   49
  766.             Top             =   720
  767.             Width           =   1215
  768.          End
  769.          Begin Label Label4 
  770.             BackStyle       =   0  'Transparent
  771.             Caption         =   "BackColor"
  772.             Height          =   195
  773.             Index           =   0
  774.             Left            =   300
  775.             TabIndex        =   48
  776.             Top             =   480
  777.             Width           =   1215
  778.          End
  779.          Begin Label Label3 
  780.             BackStyle       =   0  'Transparent
  781.             Caption         =   "The following standard properties are supported by the TabFrame control :-"
  782.             Height          =   195
  783.             Left            =   180
  784.             TabIndex        =   47
  785.             Top             =   180
  786.             Width           =   6495
  787.          End
  788.       End
  789.    End
  790.    Begin GSTabFrame GSTabFrame1 
  791.       BackColor       =   &H00C0C0C0&
  792.       BufferDisplay   =   -1  'True
  793.       Caption         =   "&ToolTips"
  794.       FocusTab        =   -1  'True
  795.       FontBold        =   0   'False
  796.       FontItalic      =   0   'False
  797.       FontName        =   "MS Sans Serif"
  798.       FontSize        =   8.25
  799.       FontStrikethru  =   0   'False
  800.       FontUnderline   =   0   'False
  801.       Height          =   4275
  802.       Index           =   5
  803.       Left            =   120
  804.       TabGroup        =   1
  805.       TabIndex        =   93
  806.       TabNumber       =   2
  807.       Top             =   420
  808.       Width           =   7635
  809.       Begin PictureBox picFlag 
  810.          BackColor       =   &H00C0C0C0&
  811.          BorderStyle     =   0  'None
  812.          Height          =   1035
  813.          Left            =   600
  814.          ScaleHeight     =   1035
  815.          ScaleWidth      =   5835
  816.          TabIndex        =   106
  817.          Top             =   2820
  818.          Width           =   5835
  819.          Begin Label Label27 
  820.             BackStyle       =   0  'Transparent
  821.             Caption         =   "Move the mouse over a tab and pause - the Country name will appear next to the cursor in a popup window. This is an example of the ToolTip control working with the TabFrame control. For more information about the ToolTip control click on the ToolTip icon in the bottom corner of this tab."
  822.             Height          =   975
  823.             Left            =   180
  824.             TabIndex        =   107
  825.             Top             =   60
  826.             Width           =   5535
  827.          End
  828.       End
  829.       Begin GSToolTip GSToolTip1 
  830.          BackColor       =   &H0080FFFF&
  831.          Left            =   120
  832.          Shadow          =   3
  833.          ToolTips        =   2  'Use Tag as Default
  834.          Top             =   780
  835.       End
  836.       Begin GSTabFrame GSTabFrame5 
  837.          BackColor       =   &H00C0C0C0&
  838.          BufferDisplay   =   -1  'True
  839.          FocusTab        =   -1  'True
  840.          Height          =   3075
  841.          Index           =   0
  842.          Left            =   480
  843.          Picture         =   TABDEMO.FRX:0000
  844.          TabGroup        =   0
  845.          TabIndex        =   94
  846.          TabNumber       =   0
  847.          Tag             =   "United Kingdom"
  848.          Top             =   900
  849.          Width           =   6375
  850.       End
  851.       Begin GSTabFrame GSTabFrame5 
  852.          BackColor       =   &H00C0C0C0&
  853.          BufferDisplay   =   -1  'True
  854.          FocusTab        =   -1  'True
  855.          FontBold        =   0   'False
  856.          FontItalic      =   0   'False
  857.          FontName        =   "MS Sans Serif"
  858.          FontSize        =   8.25
  859.          FontStrikethru  =   0   'False
  860.          FontUnderline   =   0   'False
  861.          Height          =   3075
  862.          Index           =   11
  863.          Left            =   480
  864.          Picture         =   TABDEMO.FRX:0302
  865.          TabGroup        =   2
  866.          TabIndex        =   105
  867.          TabNumber       =   3
  868.          Tag             =   "Denmark"
  869.          Top             =   900
  870.          Width           =   6375
  871.       End
  872.       Begin GSTabFrame GSTabFrame5 
  873.          BackColor       =   &H00C0C0C0&
  874.          BufferDisplay   =   -1  'True
  875.          FocusTab        =   -1  'True
  876.          FontBold        =   0   'False
  877.          FontItalic      =   0   'False
  878.          FontName        =   "MS Sans Serif"
  879.          FontSize        =   8.25
  880.          FontStrikethru  =   0   'False
  881.          FontUnderline   =   0   'False
  882.          Height          =   3075
  883.          Index           =   7
  884.          Left            =   480
  885.          Picture         =   TABDEMO.FRX:0604
  886.          TabGroup        =   1
  887.          TabIndex        =   101
  888.          TabNumber       =   3
  889.          Tag             =   "Japan"
  890.          Top             =   900
  891.          Width           =   6375
  892.       End
  893.       Begin GSTabFrame GSTabFrame5 
  894.          BackColor       =   &H00C0C0C0&
  895.          BufferDisplay   =   -1  'True
  896.          FocusTab        =   -1  'True
  897.          FontBold        =   0   'False
  898.          FontItalic      =   0   'False
  899.          FontName        =   "MS Sans Serif"
  900.          FontSize        =   8.25
  901.          FontStrikethru  =   0   'False
  902.          FontUnderline   =   0   'False
  903.          Height          =   3075
  904.          Index           =   10
  905.          Left            =   480
  906.          Picture         =   TABDEMO.FRX:0906
  907.          TabGroup        =   2
  908.          TabIndex        =   104
  909.          TabNumber       =   2
  910.          Tag             =   "Finland"
  911.          Top             =   900
  912.          Width           =   6375
  913.       End
  914.       Begin GSTabFrame GSTabFrame5 
  915.          BackColor       =   &H00C0C0C0&
  916.          BufferDisplay   =   -1  'True
  917.          FocusTab        =   -1  'True
  918.          FontBold        =   0   'False
  919.          FontItalic      =   0   'False
  920.          FontName        =   "MS Sans Serif"
  921.          FontSize        =   8.25
  922.          FontStrikethru  =   0   'False
  923.          FontUnderline   =   0   'False
  924.          Height          =   3075
  925.          Index           =   9
  926.          Left            =   480
  927.          Picture         =   TABDEMO.FRX:0C08
  928.          TabGroup        =   2
  929.          TabIndex        =   103
  930.          TabNumber       =   1
  931.          Tag             =   "Sweden"
  932.          Top             =   900
  933.          Width           =   6375
  934.       End
  935.       Begin GSTabFrame GSTabFrame5 
  936.          BackColor       =   &H00C0C0C0&
  937.          BufferDisplay   =   -1  'True
  938.          FocusTab        =   -1  'True
  939.          FontBold        =   0   'False
  940.          FontItalic      =   0   'False
  941.          FontName        =   "MS Sans Serif"
  942.          FontSize        =   8.25
  943.          FontStrikethru  =   0   'False
  944.          FontUnderline   =   0   'False
  945.          Height          =   3075
  946.          Index           =   8
  947.          Left            =   480
  948.          Picture         =   TABDEMO.FRX:0F0A
  949.          TabGroup        =   2
  950.          TabIndex        =   102
  951.          TabNumber       =   0
  952.          Tag             =   "Norway"
  953.          Top             =   900
  954.          Width           =   6375
  955.       End
  956.       Begin GSTabFrame GSTabFrame5 
  957.          BackColor       =   &H00C0C0C0&
  958.          BufferDisplay   =   -1  'True
  959.          FocusTab        =   -1  'True
  960.          FontBold        =   0   'False
  961.          FontItalic      =   0   'False
  962.          FontName        =   "MS Sans Serif"
  963.          FontSize        =   8.25
  964.          FontStrikethru  =   0   'False
  965.          FontUnderline   =   0   'False
  966.          Height          =   3075
  967.          Index           =   3
  968.          Left            =   480
  969.          Picture         =   TABDEMO.FRX:120C
  970.          TabGroup        =   0
  971.          TabIndex        =   97
  972.          TabNumber       =   3
  973.          Tag             =   "Italy"
  974.          Top             =   900
  975.          Width           =   6375
  976.       End
  977.       Begin GSTabFrame GSTabFrame5 
  978.          BackColor       =   &H00C0C0C0&
  979.          BufferDisplay   =   -1  'True
  980.          FocusTab        =   -1  'True
  981.          FontBold        =   0   'False
  982.          FontItalic      =   0   'False
  983.          FontName        =   "MS Sans Serif"
  984.          FontSize        =   8.25
  985.          FontStrikethru  =   0   'False
  986.          FontUnderline   =   0   'False
  987.          Height          =   3075
  988.          Index           =   2
  989.          Left            =   480
  990.          Picture         =   TABDEMO.FRX:150E
  991.          TabGroup        =   0
  992.          TabIndex        =   95
  993.          TabNumber       =   1
  994.          Tag             =   "Germany"
  995.          Top             =   900
  996.          Width           =   6375
  997.       End
  998.       Begin GSTabFrame GSTabFrame5 
  999.          BackColor       =   &H00C0C0C0&
  1000.          BufferDisplay   =   -1  'True
  1001.          FocusTab        =   -1  'True
  1002.          FontBold        =   0   'False
  1003.          FontItalic      =   0   'False
  1004.          FontName        =   "MS Sans Serif"
  1005.          FontSize        =   8.25
  1006.          FontStrikethru  =   0   'False
  1007.          FontUnderline   =   0   'False
  1008.          Height          =   3075
  1009.          Index           =   1
  1010.          Left            =   480
  1011.          Picture         =   TABDEMO.FRX:1810
  1012.          TabGroup        =   0
  1013.          TabIndex        =   96
  1014.          TabNumber       =   2
  1015.          Tag             =   "France"
  1016.          Top             =   900
  1017.          Width           =   6375
  1018.       End
  1019.       Begin GSTabFrame GSTabFrame5 
  1020.          BackColor       =   &H00C0C0C0&
  1021.          BufferDisplay   =   -1  'True
  1022.          FocusTab        =   -1  'True
  1023.          FontBold        =   0   'False
  1024.          FontItalic      =   0   'False
  1025.          FontName        =   "MS Sans Serif"
  1026.          FontSize        =   8.25
  1027.          FontStrikethru  =   0   'False
  1028.          FontUnderline   =   0   'False
  1029.          Height          =   3075
  1030.          Index           =   6
  1031.          Left            =   480
  1032.          Picture         =   TABDEMO.FRX:1B12
  1033.          TabGroup        =   1
  1034.          TabIndex        =   100
  1035.          TabNumber       =   2
  1036.          Tag             =   "Mexico"
  1037.          Top             =   900
  1038.          Width           =   6375
  1039.       End
  1040.       Begin GSTabFrame GSTabFrame5 
  1041.          BackColor       =   &H00C0C0C0&
  1042.          BufferDisplay   =   -1  'True
  1043.          FocusTab        =   -1  'True
  1044.          FontBold        =   0   'False
  1045.          FontItalic      =   0   'False
  1046.          FontName        =   "MS Sans Serif"
  1047.          FontSize        =   8.25
  1048.          FontStrikethru  =   0   'False
  1049.          FontUnderline   =   0   'False
  1050.          Height          =   3075
  1051.          Index           =   5
  1052.          Left            =   480
  1053.          Picture         =   TABDEMO.FRX:1E14
  1054.          TabGroup        =   1
  1055.          TabIndex        =   99
  1056.          TabNumber       =   1
  1057.          Tag             =   "Canada"
  1058.          Top             =   900
  1059.          Width           =   6375
  1060.       End
  1061.       Begin GSTabFrame GSTabFrame5 
  1062.          BackColor       =   &H00C0C0C0&
  1063.          BufferDisplay   =   -1  'True
  1064.          FocusTab        =   -1  'True
  1065.          FontBold        =   0   'False
  1066.          FontItalic      =   0   'False
  1067.          FontName        =   "MS Sans Serif"
  1068.          FontSize        =   8.25
  1069.          FontStrikethru  =   0   'False
  1070.          FontUnderline   =   0   'False
  1071.          Height          =   3075
  1072.          Index           =   4
  1073.          Left            =   480
  1074.          Picture         =   TABDEMO.FRX:2116
  1075.          TabGroup        =   1
  1076.          TabIndex        =   98
  1077.          TabNumber       =   0
  1078.          Tag             =   "United Staes of America"
  1079.          Top             =   900
  1080.          Width           =   6375
  1081.       End
  1082.       Begin Image Image1 
  1083.          Height          =   420
  1084.          Left            =   6900
  1085.          Picture         =   TABDEMO.FRX:2418
  1086.          Top             =   3720
  1087.          Width           =   420
  1088.       End
  1089.    End
  1090.    Begin GSTabFrame GSTabFrame1 
  1091.       BackColor       =   &H00C0C0C0&
  1092.       BufferDisplay   =   -1  'True
  1093.       Caption         =   "E&xamples"
  1094.       FocusTab        =   -1  'True
  1095.       FontBold        =   0   'False
  1096.       FontItalic      =   0   'False
  1097.       FontName        =   "MS Sans Serif"
  1098.       FontSize        =   8.25
  1099.       FontStrikethru  =   0   'False
  1100.       FontUnderline   =   0   'False
  1101.       Height          =   4275
  1102.       Index           =   3
  1103.       Left            =   120
  1104.       TabGroup        =   0
  1105.       TabIndex        =   19
  1106.       TabNumber       =   2
  1107.       Top             =   420
  1108.       Width           =   7635
  1109.       Begin TextBox txtTabIndent 
  1110.          Height          =   285
  1111.          Left            =   6660
  1112.          TabIndex        =   31
  1113.          Text            =   "txtTabIndent"
  1114.          Top             =   3360
  1115.          Width           =   615
  1116.       End
  1117.       Begin TextBox txtTabHeight 
  1118.          Height          =   285
  1119.          Left            =   6660
  1120.          TabIndex        =   33
  1121.          Text            =   "txtTabHeight"
  1122.          Top             =   3720
  1123.          Width           =   615
  1124.       End
  1125.       Begin TextBox txtTabWidth 
  1126.          Height          =   285
  1127.          Left            =   6660
  1128.          TabIndex        =   29
  1129.          Text            =   "txtTabWidth"
  1130.          Top             =   3000
  1131.          Width           =   615
  1132.       End
  1133.       Begin ComboBox cboPictPos 
  1134.          Height          =   300
  1135.          Left            =   5520
  1136.          Style           =   2  'Dropdown List
  1137.          TabIndex        =   27
  1138.          Top             =   2580
  1139.          Width           =   1755
  1140.       End
  1141.       Begin ComboBox cboTextOrient 
  1142.          Height          =   300
  1143.          Left            =   5520
  1144.          Style           =   2  'Dropdown List
  1145.          TabIndex        =   25
  1146.          Top             =   2040
  1147.          Width           =   1755
  1148.       End
  1149.       Begin PictureBox picEx 
  1150.          BackColor       =   &H00E0E0E0&
  1151.          Height          =   3195
  1152.          Left            =   180
  1153.          ScaleHeight     =   3165
  1154.          ScaleWidth      =   5145
  1155.          TabIndex        =   34
  1156.          TabStop         =   0   'False
  1157.          Top             =   900
  1158.          Width           =   5175
  1159.          Begin PictureBox picExBtns 
  1160.             BackColor       =   &H00C0C0C0&
  1161.             BorderStyle     =   0  'None
  1162.             Height          =   1455
  1163.             Left            =   1740
  1164.             ScaleHeight     =   1455
  1165.             ScaleWidth      =   1755
  1166.             TabIndex        =   36
  1167.             TabStop         =   0   'False
  1168.             Top             =   960
  1169.             Width           =   1755
  1170.             Begin CommandButton cmdNewGroup 
  1171.                Caption         =   "Add New Group"
  1172.                Height          =   375
  1173.                Left            =   120
  1174.                TabIndex        =   38
  1175.                Top             =   540
  1176.                Width           =   1515
  1177.             End
  1178.             Begin CommandButton cmdNewTab 
  1179.                Caption         =   "Add New Tab"
  1180.                Height          =   375
  1181.                Left            =   120
  1182.                TabIndex        =   37
  1183.                Top             =   120
  1184.                Width           =   1515
  1185.             End
  1186.             Begin CommandButton cmdReset 
  1187.                Caption         =   "Reset"
  1188.                Height          =   375
  1189.                Left            =   120
  1190.                TabIndex        =   39
  1191.                Top             =   960
  1192.                Width           =   1515
  1193.             End
  1194.          End
  1195.          Begin GSTabFrame GSTabFrame4 
  1196.             AutoWidth       =   -1  'True
  1197.             BackColor       =   &H00E0E0E0&
  1198.             BufferDisplay   =   -1  'True
  1199.             Caption         =   "TF(0)"
  1200.             FocusTab        =   -1  'True
  1201.             Height          =   2835
  1202.             Index           =   0
  1203.             Left            =   240
  1204.             Picture         =   TABDEMO.FRX:2652
  1205.             TabGroup        =   0
  1206.             TabIndex        =   35
  1207.             TabNumber       =   0
  1208.             Top             =   180
  1209.             Width           =   4695
  1210.          End
  1211.       End
  1212.       Begin ComboBox cboStyle 
  1213.          Height          =   300
  1214.          Left            =   5520
  1215.          Style           =   2  'Dropdown List
  1216.          TabIndex        =   23
  1217.          Top             =   1500
  1218.          Width           =   1755
  1219.       End
  1220.       Begin ComboBox cboPosition 
  1221.          Height          =   300
  1222.          Left            =   5520
  1223.          Style           =   2  'Dropdown List
  1224.          TabIndex        =   21
  1225.          Top             =   960
  1226.          Width           =   1755
  1227.       End
  1228.       Begin Label Label32 
  1229.          BackStyle       =   0  'Transparent
  1230.          Caption         =   "TabIndent"
  1231.          Height          =   195
  1232.          Left            =   5520
  1233.          TabIndex        =   30
  1234.          Top             =   3420
  1235.          Width           =   975
  1236.       End
  1237.       Begin Label Label31 
  1238.          BackStyle       =   0  'Transparent
  1239.          Caption         =   "TabHeight"
  1240.          Height          =   195
  1241.          Left            =   5520
  1242.          TabIndex        =   32
  1243.          Top             =   3780
  1244.          Width           =   1095
  1245.       End
  1246.       Begin Label Label30 
  1247.          BackStyle       =   0  'Transparent
  1248.          Caption         =   "TabWidth"
  1249.          Height          =   195
  1250.          Left            =   5520
  1251.          TabIndex        =   28
  1252.          Top             =   3060
  1253.          Width           =   975
  1254.       End
  1255.       Begin Label Label29 
  1256.          BackStyle       =   0  'Transparent
  1257.          Caption         =   "PicturePosition"
  1258.          Height          =   195
  1259.          Left            =   5520
  1260.          TabIndex        =   26
  1261.          Top             =   2400
  1262.          Width           =   1695
  1263.       End
  1264.       Begin Label Label28 
  1265.          BackColor       =   &H00000000&
  1266.          BackStyle       =   0  'Transparent
  1267.          Caption         =   "TextOrientation"
  1268.          Height          =   195
  1269.          Left            =   5520
  1270.          TabIndex        =   24
  1271.          Top             =   1860
  1272.          Width           =   1695
  1273.       End
  1274.       Begin Label Label25 
  1275.          BackStyle       =   0  'Transparent
  1276.          Caption         =   "Style"
  1277.          Height          =   195
  1278.          Left            =   5520
  1279.          TabIndex        =   22
  1280.          Top             =   1320
  1281.          Width           =   1215
  1282.       End
  1283.       Begin Label Label24 
  1284.          BackStyle       =   0  'Transparent
  1285.          Caption         =   "Position"
  1286.          Height          =   195
  1287.          Left            =   5520
  1288.          TabIndex        =   20
  1289.          Top             =   780
  1290.          Width           =   1335
  1291.       End
  1292.    End
  1293.    Begin Label Label18 
  1294.       BackStyle       =   0  'Transparent
  1295.       Caption         =   "For further details refer to the help file included with this demonstration."
  1296.       Height          =   195
  1297.       Left            =   300
  1298.       TabIndex        =   108
  1299.       Top             =   4860
  1300.       Width           =   6195
  1301.    End
  1302.    Begin Label Label2 
  1303.       Alignment       =   2  'Center
  1304.       BackStyle       =   0  'Transparent
  1305.       Caption         =   "Click tab with right mouse button to select"
  1306.       FontBold        =   -1  'True
  1307.       FontItalic      =   0   'False
  1308.       FontName        =   "MS Sans Serif"
  1309.       FontSize        =   12
  1310.       FontStrikethru  =   0   'False
  1311.       FontUnderline   =   0   'False
  1312.       Height          =   315
  1313.       Left            =   120
  1314.       TabIndex        =   0
  1315.       Top             =   60
  1316.       Width           =   7635
  1317.    End
  1318. Option Explicit
  1319. Dim sHelpFile As String
  1320. Declare Function WinHelp Lib "User" (ByVal hWnd As Integer, ByVal lpHelpFile As String, ByVal wCommand As Integer, dwData As Any) As Integer
  1321. Sub cboEventName_Click ()
  1322.     Dim EventDesc As String
  1323.     Select Case cboEventName.List(cboEventName.ListIndex)
  1324.         Case "Activated"
  1325.             EventDesc = "This event occurs whenever a tab becomes active."
  1326.         Case "Deactivated"
  1327.             EventDesc = "This event occurs before a tab is made inactive and a new tab is made active. The code may cancel the new tab activation if required."
  1328.     End Select
  1329.     txtEventDesc.Text = EventDesc
  1330. End Sub
  1331. Sub cboPictPos_Click ()
  1332.     Dim nIndex As Integer
  1333.     For nIndex = 1 To GSTabFrame4(0).TotalTabs - 1
  1334.         GSTabFrame4(nIndex).PicturePosition = cboPictPos.ListIndex
  1335.     Next
  1336. End Sub
  1337. Sub cboPosition_Click ()
  1338.     GSTabFrame4(0).Position = cboPosition.ListIndex
  1339.     CentreExBtns
  1340. End Sub
  1341. Sub cboPropName_Click ()
  1342.     Dim PropDesc As String
  1343.     Select Case cboPropName.List(cboPropName.ListIndex)
  1344.         Case "About"
  1345.             PropDesc = "This property, which is only available at design time, can be used to display the About dialog which identifies the TabFrame version number."
  1346.         Case "Active"
  1347.             PropDesc = "This property, which is only available at run time, determines if the tab is currently active."
  1348.         Case "ActiveColor"
  1349.             PropDesc = "This property determines the background color of the active tab."
  1350.         Case "AutoColor"
  1351.             PropDesc = "If this property is True then the TabFrame control will ensure that all tabs are using the same active and inactive colors."
  1352.         Case "AutoFont"
  1353.             PropDesc = "If this property is True then the TabFrame control will ensure that all tabs are using the same font and that the caption of the active font will be shown bold."
  1354.         Case "BufferDisplay"
  1355.             PropDesc = "If this property is True then the TabFrame control will buffer all display output to reduce flicker when selecting a new tab."
  1356.         Case "Chamfer"
  1357.             PropDesc = "This property determines the size of the chamfer on the corner of the tabs."
  1358.         Case "Child3D"
  1359.             PropDesc = "This property is used to determine which, if any, of the child controls on the TabFrame are given a 3D effect."
  1360.         Case "ChildBevel"
  1361.             PropDesc = "This property determines the type of 3D effect (raised or inset) given to selected child controls on the TabFrame"
  1362.         Case "ChildBevelWidth"
  1363.             PropDesc = "This property determines the width of the bevel used to give selected child controls a 3D appearance."
  1364.         Case "FocusTracking"
  1365.             PropDesc = "If this property is True then the TabFrame will rememeber which control has the focus from one activation to the next."
  1366.         Case "Groups"
  1367.             PropDesc = "This property, which is only available at runtime, determines the number of TabGroups in the TabSet."
  1368.         Case "InactiveColor"
  1369.             PropDesc = "This property determines the background color of the inactive tabs."
  1370.         Case "Position"
  1371.             PropDesc = "This property determines whether the tab appear at the top, bottom, left or right of the TabFrame control."
  1372.         Case "Stagger"
  1373.             PropDesc = "This property determines the offset between TabGroups."
  1374.         Case "Style"
  1375.             PropDesc = "This property determines the display style of the TabFrame control. Options include 2D (flat) as well as 3D raised or inset."
  1376.         Case "TabGroup"
  1377.             PropDesc = "This property determines which TabGroup the TabFrame belongs to."
  1378.         Case "TabHeight"
  1379.             PropDesc = "This property determines the height of the tab. If set to zero then the TabFrame control will set the height automatically based on the font size."
  1380.         Case "TabNumber"
  1381.             PropDesc = "This property determines the order, left-to-right, in which the tabs in a TabGroup are displayed."
  1382.         Case "Tabs"
  1383.             PropDesc = "This property array, which is only available at runtime, determines the number of TabFramess in a TabGroup."
  1384.         Case "TabWidth"
  1385.             PropDesc = "This property determines the width of the tab. If set to zero then the width will be set automatically so that all the tabs in a set of TabFrame controls fill the total width."
  1386.         Case "TotalTabs"
  1387.             PropDesc = "This property, which is only available at runtime, determines the total number of TabFrames in the TabSet."
  1388.         Case "Picture"
  1389.             PropDesc = "This property determines the picture (bitmap or icon) which will be displayed on the tab to the left of the caption."
  1390.         Case "TextOrientation"
  1391.             PropDesc = "This property determines the orientation of the caption text on the tab."
  1392.         Case "PicturePosition"
  1393.             PropDesc = "This property determines the position of the picture relative to the caption text."
  1394.         Case "ClientLeft"
  1395.             PropDesc = "This property, which is not available at design time and is read-only at runtime, gives the position of the top left corner of the active tab client area - i.e. the area on which controls may be placed."
  1396.         Case "ClientTop"
  1397.             PropDesc = "This property, which is not available at design time and is read-only at runtime, gives the position of the top left corner of the active tab client area - i.e. the area on which controls may be placed."
  1398.         Case "ClientWidth"
  1399.             PropDesc = "This property, which is not available at design time and is read-only at runtime, gives the width of the active tab client area - i.e. the area on which controls may be placed."
  1400.         Case "ClientHeight"
  1401.             PropDesc = "This property, which is not available at design time and is read-only at runtime, gives the height of the active tab client area - i.e. the area on which controls may be placed."
  1402.         Case "FocusTab"
  1403.             PropDesc = "This property determines if the tab is given the focus when it is activated."
  1404.         Case "AutoWidth"
  1405.             PropDesc = "If this property is True then the TabFrame control will ensure that all tabs are the same width."
  1406.         Case "TabIndent"
  1407.             PropDesc = "This property determines the indent of the first tab from the edge of the TabSet. If the default TabWidth is used for one or more tabs in a group then the indent is also used for the last tab."
  1408. End Select
  1409.     txtPropDesc.Text = PropDesc
  1410. End Sub
  1411. Sub cboStyle_Click ()
  1412.     GSTabFrame4(0).Style = cboStyle.ListIndex
  1413.     CentreExBtns
  1414. End Sub
  1415. Sub cboTextOrient_Click ()
  1416.     Dim nIndex As Integer
  1417.     For nIndex = 1 To GSTabFrame4(0).TotalTabs - 1
  1418.         GSTabFrame4(nIndex).TextOrientation = cboTextOrient.ListIndex
  1419.     Next
  1420. End Sub
  1421. Sub CentreExBtns ()
  1422.     picExBtns.Left = GSTabFrame4(0).Left + GSTabFrame4(0).ClientLeft + ((GSTabFrame4(0).ClientWidth - picExBtns.Width) / 2)
  1423.     picExBtns.Top = GSTabFrame4(0).Top + GSTabFrame4(0).ClientTop + ((GSTabFrame4(0).ClientHeight - picExBtns.Height) / 2)
  1424. End Sub
  1425. Sub cmdHelp_Click ()
  1426.     Dim rv As Integer
  1427.     rv = WinHelp(frmTabDemo.hWnd, sHelpFile, 3, 0)
  1428. End Sub
  1429. Sub cmdNewGroup_Click ()
  1430.     Dim nTab As Integer
  1431.     nTab = GSTabFrame4(0).TotalTabs
  1432.     Load GSTabFrame4(nTab)
  1433.     GSTabFrame4(nTab).TabGroup = GSTabFrame4(0).Groups
  1434.     GSTabFrame4(nTab).Caption = "TF(" & CStr(nTab) & ")"
  1435.     GSTabFrame4(nTab).Active = True
  1436.     CentreExBtns
  1437. End Sub
  1438. Sub cmdNewTab_Click ()
  1439.     Dim nTab As Integer
  1440.     nTab = GSTabFrame4(0).TotalTabs
  1441.     Load GSTabFrame4(nTab)
  1442.     GSTabFrame4(nTab).Caption = "TF(" & CStr(nTab) & ")"
  1443.     GSTabFrame4(nTab).Active = True
  1444. End Sub
  1445. Sub cmdReset_Click ()
  1446.     Dim nIndex As Integer
  1447.     ' remove all TabFrames except the first
  1448.     For nIndex = 1 To GSTabFrame4(0).TotalTabs - 1
  1449.         Unload GSTabFrame4(nIndex)
  1450.     Next
  1451.     ' reset TabFrame properties
  1452.     GSTabFrame4(0).Position = 0
  1453.     GSTabFrame4(0).Style = 2
  1454.     GSTabFrame4(0).TextOrientation = 0
  1455.     GSTabFrame4(0).PicturePosition = 0
  1456.     GSTabFrame4(0).TabWidth = 0
  1457.     GSTabFrame4(0).TabIndent = 0
  1458.     GSTabFrame4(0).TabHeight = 0
  1459.     ' initialise combo/text boxes
  1460.     cboPosition.ListIndex = GSTabFrame4(0).Position
  1461.     cboStyle.ListIndex = GSTabFrame4(0).Style
  1462.     cboTextOrient.ListIndex = GSTabFrame4(0).TextOrientation
  1463.     cboPictPos.ListIndex = GSTabFrame4(0).PicturePosition
  1464.     txtTabWidth.Text = CStr(GSTabFrame4(0).TabWidth)
  1465.     txtTabIndent.Text = CStr(GSTabFrame4(0).TabIndent)
  1466.     txtTabHeight.Text = CStr(GSTabFrame4(0).TabHeight)
  1467.     ' centre buttons on example form
  1468.     CentreExBtns
  1469. End Sub
  1470. Sub Form_Load ()
  1471.     ' place in centre of screen
  1472.     Left = (Screen.Width - Width) / 2
  1473.     Top = (Screen.Height - Height) / 2
  1474.     ' change selection label
  1475.     Label2.Caption = "Click tab with left mouse button to select"
  1476.     ' get help file name
  1477.     sHelpFile = App.Path
  1478.     If Right$(sHelpFile, 1) <> "\" Then sHelpFile = sHelpFile & "\"
  1479.     sHelpFile = sHelpFile & "TabFrame.Hlp"
  1480.     ' load property combo box
  1481.     cboPropName.Clear
  1482.     cboPropName.AddItem "About"
  1483.     cboPropName.AddItem "Active"
  1484.     cboPropName.AddItem "ActiveColor"
  1485.     cboPropName.AddItem "AutoColor"
  1486.     cboPropName.AddItem "AutoFont"
  1487.     cboPropName.AddItem "BufferDisplay"
  1488.     cboPropName.AddItem "Chamfer"
  1489.     cboPropName.AddItem "Child3D"
  1490.     cboPropName.AddItem "ChildBevel"
  1491.     cboPropName.AddItem "ChildBevelWidth"
  1492.     cboPropName.AddItem "FocusTracking"
  1493.     cboPropName.AddItem "Groups"
  1494.     cboPropName.AddItem "InactiveColor"
  1495.     cboPropName.AddItem "Position"
  1496.     cboPropName.AddItem "Stagger"
  1497.     cboPropName.AddItem "Style"
  1498.     cboPropName.AddItem "TabGroup"
  1499.     cboPropName.AddItem "TabHeight"
  1500.     cboPropName.AddItem "TabNumber"
  1501.     cboPropName.AddItem "Tabs"
  1502.     cboPropName.AddItem "TabWidth"
  1503.     cboPropName.AddItem "TotalTabs"
  1504.     cboPropName.AddItem "Picture"
  1505.     cboPropName.AddItem "TextOrientation"
  1506.     cboPropName.AddItem "PicturePosition"
  1507.     cboPropName.AddItem "ClientLeft"
  1508.     cboPropName.AddItem "ClientTop"
  1509.     cboPropName.AddItem "ClientWidth"
  1510.     cboPropName.AddItem "ClientHeight"
  1511.     cboPropName.AddItem "FocusTab"
  1512.     cboPropName.AddItem "AutoWidth"
  1513.     cboPropName.AddItem "TabIndent"
  1514.     cboPropName.ListIndex = 0
  1515.     ' load event combo box
  1516.     cboEventName.Clear
  1517.     cboEventName.AddItem "Activated"
  1518.     cboEventName.AddItem "Deactivated"
  1519.     cboEventName.ListIndex = 0
  1520.     ' load position combo box
  1521.     cboPosition.Clear
  1522.     cboPosition.AddItem "Top"
  1523.     cboPosition.AddItem "Bottom"
  1524.     cboPosition.AddItem "Left"
  1525.     cboPosition.AddItem "Right"
  1526.     cboPosition.AddItem "Right (Text out)"
  1527.     cboPosition.AddItem "Left (Top to Bottom)"
  1528.     ' load style combo box
  1529.     cboStyle.Clear
  1530.     cboStyle.AddItem "2D"
  1531.     cboStyle.AddItem "3D Active Raised"
  1532.     cboStyle.AddItem "3D Both Raised"
  1533.     cboStyle.AddItem "3D Active Inset"
  1534.     cboStyle.AddItem "3D Both Inset"
  1535.     ' load text orientation combo box
  1536.     cboTextOrient.Clear
  1537.     cboTextOrient.AddItem "Default"
  1538.     cboTextOrient.AddItem "Horizontal"
  1539.     cboTextOrient.AddItem "Vertical (Right)"
  1540.     cboTextOrient.AddItem "Vertical (Left)"
  1541.     ' load picture position combo box
  1542.     cboPictPos.Clear
  1543.     cboPictPos.AddItem "Default"
  1544.     cboPictPos.AddItem "Left of Text"
  1545.     cboPictPos.AddItem "Right of Text"
  1546.     cboPictPos.AddItem "Above Text"
  1547.     cboPictPos.AddItem "Below Text"
  1548.     ' initialise example
  1549.     cmdReset_Click
  1550. End Sub
  1551. Sub GSToolTip1_GetToolTip (FrmName As String, CtlName As String, ToolTip As String)
  1552.     If CtlName = "Image1" Then
  1553.         ToolTip = "Click to show details" & Chr$(10) & "of the ToolTip control"
  1554.     End If
  1555. End Sub
  1556. Sub Image1_Click ()
  1557.     frmToolTip.Show 1
  1558. End Sub
  1559. Sub SetTabHeight ()
  1560.     Dim nHeight As Integer
  1561.     On Error GoTo TabHeightErr
  1562.     nHeight = CInt(txtTabHeight.Text)
  1563.     GSTabFrame4(0).TabHeight = nHeight
  1564.     CentreExBtns
  1565.     Exit Sub
  1566. TabHeightErr:
  1567.     MsgBox "TabHeight must be numeric", 48
  1568.     txtTabHeight.Text = CStr(GSTabFrame4(0).TabHeight)
  1569.     Exit Sub
  1570. End Sub
  1571. Sub SetTabIndent ()
  1572.     Dim nIndent As Integer
  1573.     On Error GoTo TabIndentErr
  1574.     nIndent = CInt(txtTabIndent.Text)
  1575.     GSTabFrame4(0).TabIndent = nIndent
  1576.     Exit Sub
  1577. TabIndentErr:
  1578.     MsgBox "TabIndent must be numeric", 48
  1579.     txtTabIndent.Text = CStr(GSTabFrame4(0).TabIndent)
  1580.     Exit Sub
  1581. End Sub
  1582. Sub SetTabWidth ()
  1583.     Dim nWidth As Integer
  1584.     On Error GoTo TabWidthErr
  1585.     nWidth = CInt(txtTabWidth.Text)
  1586.     GSTabFrame4(0).TabWidth = nWidth
  1587.     Exit Sub
  1588. TabWidthErr:
  1589.     MsgBox "TabWidth must be numeric", 48
  1590.     txtTabWidth.Text = CStr(GSTabFrame4(0).TabWidth)
  1591.     Exit Sub
  1592. End Sub
  1593. Sub txtTabHeight_KeyPress (KeyAscii As Integer)
  1594.     If KeyAscii = 13 Then
  1595.         SetTabHeight
  1596.         KeyAscii = 0
  1597.     End If
  1598. End Sub
  1599. Sub txtTabHeight_LostFocus ()
  1600.     SetTabHeight
  1601. End Sub
  1602. Sub txtTabIndent_KeyPress (KeyAscii As Integer)
  1603.     If KeyAscii = 13 Then
  1604.         SetTabIndent
  1605.         KeyAscii = 0
  1606.     End If
  1607. End Sub
  1608. Sub txtTabIndent_LostFocus ()
  1609.     SetTabIndent
  1610. End Sub
  1611. Sub txtTabWidth_KeyPress (KeyAscii As Integer)
  1612.     If KeyAscii = 13 Then
  1613.         SetTabWidth
  1614.         KeyAscii = 0
  1615.     End If
  1616. End Sub
  1617. Sub txtTabWidth_LostFocus ()
  1618.     SetTabWidth
  1619. End Sub
  1620.