home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / demo / datade / datademo.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-27  |  18.4 KB  |  511 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "ctDATA.vbx Demo"
  5.    ClientHeight    =   5055
  6.    ClientLeft      =   1530
  7.    ClientTop       =   1230
  8.    ClientWidth     =   6210
  9.    Height          =   5460
  10.    Left            =   1470
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   5055
  13.    ScaleWidth      =   6210
  14.    Top             =   885
  15.    Width           =   6330
  16.    Begin ctDATA ctData4 
  17.       Prop26          =   0  'Copyright (C) 1994 Gamesman Inc.
  18.       AmountButtons   =   0  'Two Buttons
  19.       ArrowColor      =   &H00800000&
  20.       ArrowSize       =   0  'Small
  21.       BevelSize       =   2
  22.       BorderColor     =   &H00000000&
  23.       DisableCenter   =   0   'False
  24.       DisableLeft     =   0   'False
  25.       DisableRight    =   0   'False
  26.       Height          =   405
  27.       Left            =   5070
  28.       RepeatRate      =   5
  29.       SkipValue       =   1
  30.       Style           =   1  'Next Records
  31.       TabIndex        =   4
  32.       Top             =   4350
  33.       Width           =   825
  34.    End
  35.    Begin ctDATA ctData3 
  36.       Prop26          =   0  'Copyright (C) 1994 Gamesman Inc.
  37.       AmountButtons   =   0  'Two Buttons
  38.       ArrowColor      =   &H00800000&
  39.       ArrowSize       =   0  'Small
  40.       BevelSize       =   2
  41.       BorderColor     =   &H00000000&
  42.       DisableCenter   =   0   'False
  43.       DisableLeft     =   0   'False
  44.       DisableRight    =   0   'False
  45.       Height          =   405
  46.       Left            =   4260
  47.       RepeatRate      =   5
  48.       SkipValue       =   1
  49.       Style           =   0  'Previous Records
  50.       TabIndex        =   3
  51.       Top             =   4350
  52.       Width           =   825
  53.    End
  54.    Begin Data Data1 
  55.       Caption         =   "Data1"
  56.       Connect         =   ""
  57.       DatabaseName    =   "BIBLIO.MDB"
  58.       Exclusive       =   0   'False
  59.       Height          =   315
  60.       Left            =   300
  61.       Options         =   0
  62.       ReadOnly        =   0   'False
  63.       RecordSource    =   "Authors"
  64.       Top             =   4560
  65.       Visible         =   0   'False
  66.       Width           =   2175
  67.    End
  68.    Begin Frame DataFrame 
  69.       BackColor       =   &H00C0C0C0&
  70.       Caption         =   "Page 1 of 4"
  71.       Height          =   4035
  72.       Index           =   0
  73.       Left            =   390
  74.       TabIndex        =   0
  75.       Top             =   330
  76.       Width           =   5505
  77.       Begin TextBox Text3 
  78.          DataField       =   "Author"
  79.          DataSource      =   "Data1"
  80.          Height          =   435
  81.          Left            =   300
  82.          TabIndex        =   7
  83.          Top             =   2040
  84.          Width           =   3765
  85.       End
  86.       Begin TextBox Text2 
  87.          DataField       =   "Au_ID"
  88.          DataSource      =   "Data1"
  89.          Height          =   435
  90.          Left            =   300
  91.          TabIndex        =   6
  92.          Top             =   1530
  93.          Width           =   3765
  94.       End
  95.       Begin TextBox Text1 
  96.          FontBold        =   0   'False
  97.          FontItalic      =   0   'False
  98.          FontName        =   "MS Sans Serif"
  99.          FontSize        =   8.25
  100.          FontStrikethru  =   0   'False
  101.          FontUnderline   =   0   'False
  102.          Height          =   525
  103.          Left            =   1740
  104.          TabIndex        =   5
  105.          Text            =   "Text1"
  106.          Top             =   690
  107.          Width           =   1875
  108.       End
  109.       Begin ctDATA ctData2 
  110.          Prop26          =   0  'Copyright (C) 1994 Gamesman Inc.
  111.          AmountButtons   =   1  'Three Buttons
  112.          ArrowColor      =   &H00000000&
  113.          ArrowSize       =   0  'Small
  114.          BevelSize       =   2
  115.          BorderColor     =   &H00000000&
  116.          DataSource      =   "Data1"
  117.          DisableCenter   =   0   'False
  118.          DisableLeft     =   0   'False
  119.          DisableRight    =   0   'False
  120.          Height          =   525
  121.          Left            =   3600
  122.          RepeatRate      =   5
  123.          SkipValue       =   5
  124.          Style           =   1  'Next Records
  125.          TabIndex        =   2
  126.          Top             =   690
  127.          Width           =   1545
  128.       End
  129.       Begin ctDATA ctData1 
  130.          Prop26          =   0  'Copyright (C) 1994 Gamesman Inc.
  131.          AmountButtons   =   1  'Three Buttons
  132.          ArrowColor      =   &H00000000&
  133.          ArrowSize       =   0  'Small
  134.          BevelSize       =   2
  135.          BorderColor     =   &H00000000&
  136.          DataSource      =   "Data1"
  137.          DisableCenter   =   0   'False
  138.          DisableLeft     =   0   'False
  139.          DisableRight    =   0   'False
  140.          Height          =   525
  141.          Left            =   210
  142.          RepeatRate      =   5
  143.          SkipValue       =   5
  144.          Style           =   0  'Previous Records
  145.          TabIndex        =   1
  146.          Top             =   690
  147.          Width           =   1545
  148.       End
  149.       Begin Label Label2 
  150.          Alignment       =   2  'Center
  151.          BackColor       =   &H00C0C0C0&
  152.          Caption         =   "Bound to a VB Data Control"
  153.          FontBold        =   0   'False
  154.          FontItalic      =   0   'False
  155.          FontName        =   "MS Sans Serif"
  156.          FontSize        =   9.75
  157.          FontStrikethru  =   0   'False
  158.          FontUnderline   =   0   'False
  159.          ForeColor       =   &H00800000&
  160.          Height          =   315
  161.          Left            =   780
  162.          TabIndex        =   9
  163.          Top             =   300
  164.          Width           =   3705
  165.       End
  166.       Begin Label Label1 
  167.          Alignment       =   2  'Center
  168.          BackColor       =   &H00C0C0C0&
  169.          Caption         =   "This control can be bound to an VB data control. It then allows the option of skipping a group of records (The amount is set by the programmer). To simulate the data VB data control, we use two of the ctDATA controls and a third party label box."
  170.          FontBold        =   0   'False
  171.          FontItalic      =   0   'False
  172.          FontName        =   "MS Sans Serif"
  173.          FontSize        =   8.25
  174.          FontStrikethru  =   0   'False
  175.          FontUnderline   =   0   'False
  176.          Height          =   945
  177.          Left            =   300
  178.          TabIndex        =   8
  179.          Top             =   2910
  180.          Width           =   5025
  181.       End
  182.    End
  183.    Begin Frame DataFrame 
  184.       BackColor       =   &H00C0C0C0&
  185.       Caption         =   "Page 3 of 4"
  186.       Height          =   4035
  187.       Index           =   2
  188.       Left            =   390
  189.       TabIndex        =   14
  190.       Top             =   330
  191.       Width           =   5505
  192.       Begin ctDATA ctData5 
  193.          Prop26          =   0  'Copyright (C) 1994 Gamesman Inc.
  194.          AmountButtons   =   1  'Three Buttons
  195.          ArrowColor      =   &H00000000&
  196.          ArrowSize       =   1  'Large
  197.          BevelSize       =   2
  198.          BorderColor     =   &H00000000&
  199.          DisableCenter   =   0   'False
  200.          DisableLeft     =   0   'False
  201.          DisableRight    =   0   'False
  202.          Height          =   675
  203.          Left            =   1440
  204.          PictureCenter   =   DATADEMO.FRX:0000
  205.          PictureRight    =   DATADEMO.FRX:019A
  206.          RepeatRate      =   5
  207.          SizePictureCenter=   -1  'True
  208.          SkipValue       =   1
  209.          Style           =   0  'Previous Records
  210.          TabIndex        =   28
  211.          Top             =   2340
  212.          Width           =   2535
  213.       End
  214.       Begin Label Label19 
  215.          Alignment       =   2  'Center
  216.          BackColor       =   &H00C0C0C0&
  217.          Caption         =   "Each button in the control can contain a bitmap or icon. In the example above, the center button contains a sized bitmap and the right button contains an icon."
  218.          Height          =   735
  219.          Left            =   240
  220.          TabIndex        =   30
  221.          Top             =   3120
  222.          Width           =   5115
  223.       End
  224.       Begin Label Label18 
  225.          Alignment       =   2  'Center
  226.          BackColor       =   &H00C0C0C0&
  227.          Caption         =   "Picture Controls"
  228.          FontBold        =   -1  'True
  229.          FontItalic      =   0   'False
  230.          FontName        =   "MS Sans Serif"
  231.          FontSize        =   12
  232.          FontStrikethru  =   0   'False
  233.          FontUnderline   =   0   'False
  234.          ForeColor       =   &H00800000&
  235.          Height          =   375
  236.          Left            =   960
  237.          TabIndex        =   29
  238.          Top             =   1920
  239.          Width           =   3675
  240.       End
  241.       Begin Label Label7 
  242.          Alignment       =   2  'Center
  243.          BackColor       =   &H00C0C0C0&
  244.          Caption         =   "The ctDATA control does not have to have anything to do with data. The control can be set to two or three buttons; and it can be used to navigate through a series of forms. (like the controls below)"
  245.          Height          =   885
  246.          Left            =   180
  247.          TabIndex        =   16
  248.          Top             =   900
  249.          Width           =   5055
  250.       End
  251.       Begin Label Label6 
  252.          Alignment       =   2  'Center
  253.          BackColor       =   &H00C0C0C0&
  254.          Caption         =   "Non-Data Related Control"
  255.          FontBold        =   -1  'True
  256.          FontItalic      =   0   'False
  257.          FontName        =   "MS Sans Serif"
  258.          FontSize        =   12
  259.          FontStrikethru  =   0   'False
  260.          FontUnderline   =   0   'False
  261.          ForeColor       =   &H00800000&
  262.          Height          =   345
  263.          Left            =   600
  264.          TabIndex        =   15
  265.          Top             =   480
  266.          Width           =   4215
  267.       End
  268.    End
  269.    Begin Frame DataFrame 
  270.       BackColor       =   &H00C0C0C0&
  271.       Caption         =   "Page 2 of 4"
  272.       Height          =   4035
  273.       Index           =   1
  274.       Left            =   390
  275.       TabIndex        =   10
  276.       Top             =   330
  277.       Width           =   5505
  278.       Begin Label Label17 
  279.          Alignment       =   2  'Center
  280.          BackColor       =   &H00C0C0C0&
  281.          Caption         =   "NOTE : I wrote this product to work with my SixBase/VB(tm) data grid. However, Successware(tm) has not had anything to do with the development of this control, nor is Gamesman Inc. and Successware(tm) associated in any way."
  282.          FontBold        =   0   'False
  283.          FontItalic      =   0   'False
  284.          FontName        =   "MS Sans Serif"
  285.          FontSize        =   8.25
  286.          FontStrikethru  =   0   'False
  287.          FontUnderline   =   0   'False
  288.          ForeColor       =   &H00000080&
  289.          Height          =   795
  290.          Left            =   360
  291.          TabIndex        =   27
  292.          Top             =   1800
  293.          Width           =   4845
  294.       End
  295.       Begin Label Label5 
  296.          Alignment       =   2  'Center
  297.          BackColor       =   &H00C0C0C0&
  298.          Caption         =   "The control also acts like a spin button in that if you continue to press down on a button, it will fire repeatedly. The amount of times the events can be fired in one second can be defined by the programmer."
  299.          Height          =   1035
  300.          Left            =   510
  301.          TabIndex        =   13
  302.          Top             =   2700
  303.          Width           =   4545
  304.       End
  305.       Begin Label Label4 
  306.          Alignment       =   2  'Center
  307.          BackColor       =   &H00C0C0C0&
  308.          Caption         =   "The ctDATA control does not have to be bound to a data control. It was originally written to work with the data grid supplied in the SixBASE/VB(tm). Because each button in the control fires a seperate event, it can be set up to skip, page, and go to Beginning/End of files"
  309.          Height          =   1035
  310.          Left            =   360
  311.          TabIndex        =   12
  312.          Top             =   720
  313.          Width           =   4935
  314.       End
  315.       Begin Label Label3 
  316.          Alignment       =   2  'Center
  317.          BackColor       =   &H00C0C0C0&
  318.          Caption         =   "Unbound Control"
  319.          FontBold        =   -1  'True
  320.          FontItalic      =   0   'False
  321.          FontName        =   "MS Sans Serif"
  322.          FontSize        =   9.75
  323.          FontStrikethru  =   0   'False
  324.          FontUnderline   =   0   'False
  325.          ForeColor       =   &H00800000&
  326.          Height          =   285
  327.          Left            =   480
  328.          TabIndex        =   11
  329.          Top             =   330
  330.          Width           =   4605
  331.       End
  332.    End
  333.    Begin Frame DataFrame 
  334.       BackColor       =   &H00C0C0C0&
  335.       Caption         =   "Page 4 of 4"
  336.       Height          =   4035
  337.       Index           =   3
  338.       Left            =   390
  339.       TabIndex        =   17
  340.       Top             =   330
  341.       Width           =   5505
  342.       Begin Label Label16 
  343.          BackColor       =   &H00C0C0C0&
  344.          Caption         =   "Craig Gluck"
  345.          Height          =   255
  346.          Left            =   4050
  347.          TabIndex        =   26
  348.          Top             =   3630
  349.          Width           =   1275
  350.       End
  351.       Begin Label Label15 
  352.          BackColor       =   &H00C0C0C0&
  353.          Caption         =   "Bus : (204) 475-7903"
  354.          ForeColor       =   &H00800000&
  355.          Height          =   195
  356.          Left            =   330
  357.          TabIndex        =   25
  358.          Top             =   3600
  359.          Width           =   2745
  360.       End
  361.       Begin Label Label14 
  362.          BackColor       =   &H00C0C0C0&
  363.          Caption         =   "FAX : (204) 284-3307"
  364.          ForeColor       =   &H00800000&
  365.          Height          =   225
  366.          Left            =   330
  367.          TabIndex        =   24
  368.          Top             =   3360
  369.          Width           =   2685
  370.       End
  371.       Begin Label Label13 
  372.          BackColor       =   &H00C0C0C0&
  373.          Caption         =   "Winnipeg Man. Canada R3M 0T7"
  374.          ForeColor       =   &H00800000&
  375.          Height          =   225
  376.          Left            =   330
  377.          TabIndex        =   23
  378.          Top             =   3120
  379.          Width           =   3555
  380.       End
  381.       Begin Label Label12 
  382.          BackColor       =   &H00C0C0C0&
  383.          Caption         =   "1161 McMillan Avenue"
  384.          ForeColor       =   &H00800000&
  385.          Height          =   225
  386.          Left            =   330
  387.          TabIndex        =   22
  388.          Top             =   2880
  389.          Width           =   2325
  390.       End
  391.       Begin Label Label11 
  392.          BackColor       =   &H00C0C0C0&
  393.          Caption         =   "Gamesman Inc."
  394.          ForeColor       =   &H00800000&
  395.          Height          =   225
  396.          Left            =   330
  397.          TabIndex        =   21
  398.          Top             =   2640
  399.          Width           =   2325
  400.       End
  401.       Begin Label Label10 
  402.          BackColor       =   &H00C0C0C0&
  403.          Caption         =   "     A full copy of the VBX (with documentation on a .WRI file) can be ordered for $10.00. (Other arrangements can be made if the source code is required). Please make your cheque out to the following ..."
  404.          Height          =   1065
  405.          Left            =   180
  406.          TabIndex        =   20
  407.          Top             =   1590
  408.          Width           =   5085
  409.       End
  410.       Begin Label Label9 
  411.          Alignment       =   2  'Center
  412.          BackColor       =   &H00C0C0C0&
  413.          Caption         =   "This VBX is just a demo version. After pressing any button more than 50 times, the button will disable itself. When I finally figure out how to write a proper ""Dialog About"" box, I'll place those in my demos instead."
  414.          Height          =   945
  415.          Left            =   270
  416.          TabIndex        =   19
  417.          Top             =   690
  418.          Width           =   4965
  419.       End
  420.       Begin Label Label8 
  421.          Alignment       =   2  'Center
  422.          BackColor       =   &H00C0C0C0&
  423.          Caption         =   "Ordering"
  424.          FontBold        =   -1  'True
  425.          FontItalic      =   0   'False
  426.          FontName        =   "MS Sans Serif"
  427.          FontSize        =   12
  428.          FontStrikethru  =   0   'False
  429.          FontUnderline   =   0   'False
  430.          ForeColor       =   &H00800000&
  431.          Height          =   345
  432.          Left            =   990
  433.          TabIndex        =   18
  434.          Top             =   330
  435.          Width           =   3315
  436.       End
  437.    End
  438. Sub ctData1_ClickCenter ()
  439.    Text1.Text = "Page Up"
  440. End Sub
  441. Sub ctData1_MouseCenter ()
  442.    Text1.Text = "Page Up"
  443. End Sub
  444. Sub ctData1_MouseLeft ()
  445.    Text1.Text = "Beginning of File"
  446. End Sub
  447. Sub ctData1_MouseRight ()
  448.    Text1.Text = "Previous"
  449. End Sub
  450. Sub ctData2_MouseCenter ()
  451.    Text1.Text = "Page Down"
  452. End Sub
  453. Sub ctData2_MouseLeft ()
  454.    Text1.Text = "Next"
  455. End Sub
  456. Sub ctData2_MouseRight ()
  457.    Text1.Text = "End of File"
  458. End Sub
  459. Sub ctData3_ClickLeft ()
  460.    DataFrame(1).Visible = False
  461.    DataFrame(2).Visible = False
  462.    DataFrame(3).Visible = False
  463.    DataFrame(0).Visible = True
  464. End Sub
  465. Sub ctData3_ClickRight ()
  466.    If DataFrame(1).Visible = True Then
  467.       DataFrame(1).Visible = False
  468.       DataFrame(0).Visible = True
  469.    End If
  470.    If DataFrame(2).Visible = True Then
  471.       DataFrame(2).Visible = False
  472.       DataFrame(1).Visible = True
  473.    End If
  474.    If DataFrame(3).Visible = True Then
  475.       DataFrame(3).Visible = False
  476.       DataFrame(2).Visible = True
  477.    End If
  478. End Sub
  479. Sub ctData4_ClickLeft ()
  480.    If DataFrame(2).Visible = True Then
  481.       DataFrame(2).Visible = False
  482.       DataFrame(3).Visible = True
  483.    End If
  484.    If DataFrame(1).Visible = True Then
  485.       DataFrame(1).Visible = False
  486.       DataFrame(2).Visible = True
  487.    End If
  488.    If DataFrame(0).Visible = True Then
  489.       DataFrame(0).Visible = False
  490.       DataFrame(1).Visible = True
  491.    End If
  492. End Sub
  493. Sub ctData4_ClickRight ()
  494.    DataFrame(0).Visible = False
  495.    DataFrame(1).Visible = False
  496.    DataFrame(2).Visible = False
  497.    DataFrame(3).Visible = True
  498. End Sub
  499. Sub DataFrame_MouseMove (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  500.    Text1.Text = ""
  501. End Sub
  502. Sub Form_Load ()
  503.    DataFrame(1).Visible = False
  504.    DataFrame(2).Visible = False
  505.    DataFrame(3).Visible = False
  506.    DataFrame(0).Visible = True
  507. End Sub
  508. Sub Frame1_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  509.    Text1.Text = ""
  510. End Sub
  511.