home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / news / 2381 / vcc / indextab.frm < prev    next >
Text File  |  1993-10-28  |  12KB  |  307 lines

  1. VERSION 2.00
  2. Begin Form IndexTab 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Resize the form and see the size of the tabs"
  5.    ClientHeight    =   5550
  6.    ClientLeft      =   795
  7.    ClientTop       =   975
  8.    ClientWidth     =   6195
  9.    Height          =   6015
  10.    Left            =   705
  11.    LinkTopic       =   "Form2"
  12.    ScaleHeight     =   5550
  13.    ScaleWidth      =   6195
  14.    Top             =   600
  15.    Width           =   6375
  16.    Begin VideoSoftElastic VSElastic1 
  17.       Align           =   5  'Fill Container
  18.       AutoSizeChildren=   1  'Even Horizontal
  19.       BackColor       =   &H00C0C0C0&
  20.       BevelOuter      =   1  'Raised
  21.       BevelOuterWidth =   1
  22.       Height          =   6360
  23.       Left            =   0
  24.       MinChildSize    =   3500
  25.       TabIndex        =   0
  26.       Top             =   0
  27.       Width           =   9600
  28.       Begin VideoSoftIndexTab VSIndexTab1 
  29.          BackTabColor    =   &H00008080&
  30.          Caption         =   "Info|To do|Tasks"
  31.          FontBold        =   -1  'True
  32.          FontItalic      =   0   'False
  33.          FontName        =   "Arial"
  34.          FontSize        =   13.5
  35.          FontStrikethru  =   0   'False
  36.          FontUnderline   =   0   'False
  37.          FrontTabColor   =   &H00C0C0C0&
  38.          Height          =   6180
  39.          Index           =   0
  40.          Left            =   90
  41.          Position        =   0  'Top
  42.          ShowFocusRect   =   0   'False
  43.          Style           =   4  'Chamfered
  44.          TabIndex        =   1
  45.          TabOutlineColor =   &H00FFFFFF&
  46.          TabsPerPage     =   3
  47.          Top             =   90
  48.          Width           =   9420
  49.          Begin VideoSoftElastic VSElastic5 
  50.             BackColor       =   &H00C0C0C0&
  51.             BevelOuter      =   0  'None
  52.             BevelOuterWidth =   1
  53.             Caption         =   "The first container to the left is assigned to the first tab, the second one to the left is assigned to the second tab, and so on.  Move the containers to the left or rigth inside the IndexTab to change tab assignments."
  54.             CaptionPos      =   4  'Center Center
  55.             Height          =   3330
  56.             Left            =   4170
  57.             TabIndex        =   17
  58.             Top             =   600
  59.             Width           =   1815
  60.          End
  61.          Begin VideoSoftElastic VSElastic4 
  62.             AutoSizeChildren=   3  'Even Vertical
  63.             BackColor       =   &H00C0C0C0&
  64.             BevelOuter      =   0  'None
  65.             CaptionPos      =   6  'Right Top
  66.             Height          =   1395
  67.             Left            =   2550
  68.             TabIndex        =   14
  69.             TagWidth        =   650
  70.             Top             =   600
  71.             Width           =   1470
  72.             Begin ListBox List1 
  73.                BackColor       =   &H0080FFFF&
  74.                Height          =   420
  75.                Index           =   1
  76.                Left            =   735
  77.                TabIndex        =   16
  78.                Tag             =   "Notes"
  79.                Top             =   750
  80.                Width           =   645
  81.             End
  82.             Begin ListBox List1 
  83.                Height          =   420
  84.                Index           =   0
  85.                Left            =   735
  86.                TabIndex        =   15
  87.                Tag             =   "To Do"
  88.                Top             =   90
  89.                Width           =   645
  90.             End
  91.          End
  92.          Begin VideoSoftElastic VSElastic2 
  93.             AutoSizeChildren=   4  'Uneven Vertical
  94.             BackColor       =   &H00C0C0C0&
  95.             BevelOuter      =   0  'None
  96.             CaptionPos      =   6  'Right Top
  97.             Height          =   2670
  98.             Left            =   90
  99.             TabIndex        =   2
  100.             Top             =   495
  101.             Width           =   2445
  102.             Begin TextBox Text3 
  103.                BackColor       =   &H00FFFFFF&
  104.                ForeColor       =   &H00000000&
  105.                Height          =   765
  106.                Left            =   90
  107.                MultiLine       =   -1  'True
  108.                ScrollBars      =   2  'Vertical
  109.                TabIndex        =   18
  110.                Tag             =   "Notes"
  111.                Text            =   "If the Elastic TagWidth property is set to a value greater than 0, the Elastic displays each child's Tag property content as a label.  Check the Tag property of the controls in this elastic."
  112.                Top             =   1815
  113.                Width           =   2265
  114.             End
  115.             Begin VideoSoftElastic VSElastic3 
  116.                AutoSizeChildren=   3  'Even Vertical
  117.                BackColor       =   &H00C0C0C0&
  118.                ForeColor       =   &H00FF0000&
  119.                Height          =   1635
  120.                Left            =   90
  121.                TabIndex        =   9
  122.                TagWidth        =   1200
  123.                Top             =   90
  124.                Width           =   2265
  125.                Begin TextBox Text1 
  126.                   BackColor       =   &H00FFFFFF&
  127.                   FontBold        =   0   'False
  128.                   FontItalic      =   0   'False
  129.                   FontName        =   "MS Sans Serif"
  130.                   FontSize        =   8.25
  131.                   FontStrikethru  =   0   'False
  132.                   FontUnderline   =   0   'False
  133.                   Height          =   285
  134.                   Index           =   3
  135.                   Left            =   1290
  136.                   TabIndex        =   13
  137.                   Tag             =   "Department"
  138.                   Top             =   1260
  139.                   Width           =   885
  140.                End
  141.                Begin TextBox Text1 
  142.                   BackColor       =   &H00FFFFFF&
  143.                   FontBold        =   0   'False
  144.                   FontItalic      =   0   'False
  145.                   FontName        =   "MS Sans Serif"
  146.                   FontSize        =   8.25
  147.                   FontStrikethru  =   0   'False
  148.                   FontUnderline   =   0   'False
  149.                   Height          =   300
  150.                   Index           =   2
  151.                   Left            =   1290
  152.                   TabIndex        =   12
  153.                   Tag             =   "Company"
  154.                   Top             =   870
  155.                   Width           =   885
  156.                End
  157.                Begin TextBox Text1 
  158.                   BackColor       =   &H00FFFFFF&
  159.                   FontBold        =   0   'False
  160.                   FontItalic      =   0   'False
  161.                   FontName        =   "MS Sans Serif"
  162.                   FontSize        =   8.25
  163.                   FontStrikethru  =   0   'False
  164.                   FontUnderline   =   0   'False
  165.                   Height          =   300
  166.                   Index           =   1
  167.                   Left            =   1290
  168.                   TabIndex        =   11
  169.                   Tag             =   "Last Name"
  170.                   Top             =   90
  171.                   Width           =   885
  172.                End
  173.                Begin TextBox Text1 
  174.                   BackColor       =   &H00FFFFFF&
  175.                   FontBold        =   0   'False
  176.                   FontItalic      =   0   'False
  177.                   FontName        =   "MS Sans Serif"
  178.                   FontSize        =   8.25
  179.                   FontStrikethru  =   0   'False
  180.                   FontUnderline   =   0   'False
  181.                   Height          =   300
  182.                   Index           =   0
  183.                   Left            =   1290
  184.                   TabIndex        =   10
  185.                   Tag             =   "First Name"
  186.                   Top             =   480
  187.                   Width           =   885
  188.                End
  189.             End
  190.          End
  191.       End
  192.    End
  193.    Begin VideoSoftElastic StatusBar 
  194.       Align           =   2  'Align Bottom
  195.       AutoSizeChildren=   1  'Even Horizontal
  196.       BackColor       =   &H00C0C0C0&
  197.       BevelOuter      =   0  'None
  198.       Height          =   555
  199.       Left            =   0
  200.       TabIndex        =   3
  201.       Top             =   6360
  202.       Width           =   9600
  203.       Begin CommandButton Button 
  204.          BackColor       =   &H00C0C0C0&
  205.          Caption         =   "BackS&heets"
  206.          FontBold        =   0   'False
  207.          FontItalic      =   0   'False
  208.          FontName        =   "MS Sans Serif"
  209.          FontSize        =   8.25
  210.          FontStrikethru  =   0   'False
  211.          FontUnderline   =   0   'False
  212.          Height          =   375
  213.          Index           =   4
  214.          Left            =   7710
  215.          TabIndex        =   8
  216.          Top             =   90
  217.          Width           =   1800
  218.       End
  219.       Begin CommandButton Button 
  220.          BackColor       =   &H00C0C0C0&
  221.          Caption         =   "&ForeColor"
  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          =   375
  229.          Index           =   3
  230.          Left            =   5805
  231.          TabIndex        =   7
  232.          Top             =   90
  233.          Width           =   1815
  234.       End
  235.       Begin CommandButton Button 
  236.          BackColor       =   &H00C0C0C0&
  237.          Caption         =   "&BackTabColor"
  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.          Height          =   375
  245.          Index           =   2
  246.          Left            =   3900
  247.          TabIndex        =   6
  248.          Top             =   90
  249.          Width           =   1815
  250.       End
  251.       Begin CommandButton Button 
  252.          BackColor       =   &H00C0C0C0&
  253.          Caption         =   "&Style"
  254.          FontBold        =   0   'False
  255.          FontItalic      =   0   'False
  256.          FontName        =   "MS Sans Serif"
  257.          FontSize        =   8.25
  258.          FontStrikethru  =   0   'False
  259.          FontUnderline   =   0   'False
  260.          Height          =   375
  261.          Index           =   1
  262.          Left            =   1995
  263.          TabIndex        =   5
  264.          Top             =   90
  265.          Width           =   1815
  266.       End
  267.       Begin CommandButton Button 
  268.          BackColor       =   &H00C0C0C0&
  269.          Caption         =   "&Position"
  270.          FontBold        =   0   'False
  271.          FontItalic      =   0   'False
  272.          FontName        =   "MS Sans Serif"
  273.          FontSize        =   8.25
  274.          FontStrikethru  =   0   'False
  275.          FontUnderline   =   0   'False
  276.          Height          =   375
  277.          Index           =   0
  278.          Left            =   90
  279.          TabIndex        =   4
  280.          Top             =   90
  281.          Width           =   1815
  282.       End
  283.    End
  284. End
  285. Option Explicit
  286.  
  287. Sub Button_Click (Index As Integer)
  288.   Select Case Index
  289.     Case 0    'Changes Tab positions
  290.        VSindextab1(0).Position = (VSindextab1(0).Position + 1) Mod 5
  291.  
  292.     Case 1    'Changes tab styles
  293.        VSindextab1(0).Style = (VSindextab1(0).Style + 1) Mod 6
  294.        
  295.     Case 2    'Changes back tab color
  296.        VSindextab1(0).BackTabColor = QBColor(Rnd * 15)
  297.  
  298.     Case 3    'Changes Caption text color
  299.        VSindextab1(0).ForeColor = QBColor(Rnd * 15)
  300.        
  301.     Case 4    'Changes BackSheets style
  302.       VSindextab1(0).BackSheets = (VSindextab1(0).BackSheets + 1) Mod 3
  303.  
  304.   End Select
  305. End Sub
  306.  
  307.