home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Windows 95 Special 2 / WIN95_2.bin / utils / envelop / envelop.6 / Tools / Bootcamp / basic / arraybtn / arraybtn.eto < prev    next >
Encoding:
Text File  |  1996-07-08  |  8.0 KB  |  265 lines

  1. Type ArrayButton From Button
  2.  
  3.   ' METHODS for object: ArrayButton
  4.   Sub Click()
  5.     InfoBox.Message("", Caption)
  6.   End Sub
  7.  
  8. End Type
  9.  
  10. Type ArrayButtonMasterForm From SampleMasterForm
  11.   Dim ArrayButton1 As New ArrayButton
  12.   Dim ArrayButton2 As New ArrayButton
  13.   Dim ArrayButton3 As New ArrayButton
  14.   Dim ArrayButton4 As New ArrayButton
  15.   Dim ArrayButton5 As New ArrayButton
  16.   Dim ArrayButton6 As New ArrayButton
  17.   Dim ArrayButton7 As New ArrayButton
  18.   Dim ArrayButton8 As New ArrayButton
  19.   Dim ArrayButton9 As New ArrayButton
  20.   Dim ArrayButton10 As New ArrayButton
  21.   Dim ArrayButton11 As New ArrayButton
  22.   Dim ArrayButton12 As New ArrayButton
  23.   Dim ArrayButton13 As New ArrayButton
  24.   Dim ArrayButton14 As New ArrayButton
  25.   Dim ArrayButton15 As New ArrayButton
  26.   Dim ArrayButton16 As New ArrayButton
  27.   Dim ArrayButton17 As New ArrayButton
  28.   Dim ArrayButton18 As New ArrayButton
  29.   Dim ArrayButton19 As New ArrayButton
  30.   Dim ArrayButton20 As New ArrayButton
  31.   Dim ArrayButton21 As New ArrayButton
  32.   Dim ArrayButton22 As New ArrayButton
  33.   Dim ArrayButton23 As New ArrayButton
  34.   Dim ArrayButton24 As New ArrayButton
  35.   Dim ArrayButton25 As New ArrayButton
  36.   Dim chkBold As New CheckBox
  37.   Dim chkItalic As New CheckBox
  38.   Dim chkUnderline As New CheckBox
  39.   Dim chkStrikethru As New CheckBox
  40.   Dim font As New Font
  41.   Dim font2 As New Font
  42.  
  43.   ' METHODS for object: ArrayButtonMasterForm
  44.   Sub chkBold_Click()
  45.     font.Bold = (chkBold.Value <> False)
  46.   End Sub
  47.  
  48.   Sub chkItalic_Click()
  49.     font.Italic = chkItalic.Value <> 0
  50.   End Sub
  51.  
  52.   Sub chkStrikethru_Click()
  53.     font.Strikethru = chkStrikethru.Value <> 0
  54.   End Sub
  55.  
  56.   Sub chkUnderline_Click()
  57.     font.Underline = chkUnderline.Value <> 0
  58.   End Sub
  59.  
  60.   Sub ResetApplication_Click ()
  61.   
  62.     chkBold.Value = 0
  63.     font.Bold = "False"
  64.   
  65.     chkItalic.Value = 0
  66.     font.Italic = "False"
  67.   
  68.     chkUnderline.Value = 0
  69.     font.Underline = "False"
  70.   
  71.     chkStrikethru.Value = 0
  72.     font.Strikethru = "False"
  73.   
  74.   End Sub
  75.  
  76. End Type
  77.  
  78. Begin Code
  79. ' Reconstruction commands for object: ArrayButton
  80. '
  81.   With ArrayButton
  82.     .Move(0, 0, 0, 0)
  83.   End With  'ArrayButton
  84. ' Reconstruction commands for object: ArrayButtonMasterForm
  85. '
  86.   With ArrayButtonMasterForm
  87.     .Caption := "Button Array Demonstration"
  88.     .ForeColor := 0
  89.     .Font := ArrayButtonMasterForm.font
  90.     .Move(5865, 870, 7470, 5040)
  91.     .SampleDir := "W:\bootcamp\basic\arraybtn\"
  92.     .SampleName := "arraybtn"
  93.     With .ArrayButton1
  94.       .Caption := "ArrayButton1"
  95.       .ZOrder := 5
  96.       .Move(300, 450, 1350, 600)
  97.     End With  'ArrayButtonMasterForm.ArrayButton1
  98.     With .ArrayButton2
  99.       .Caption := "ArrayButton2"
  100.       .ZOrder := 6
  101.       .Move(1665, 450, 1350, 600)
  102.     End With  'ArrayButtonMasterForm.ArrayButton2
  103.     With .ArrayButton3
  104.       .Caption := "ArrayButton3"
  105.       .ZOrder := 7
  106.       .Move(3030, 450, 1350, 600)
  107.     End With  'ArrayButtonMasterForm.ArrayButton3
  108.     With .ArrayButton4
  109.       .Caption := "ArrayButton4"
  110.       .ZOrder := 8
  111.       .Move(4395, 450, 1350, 600)
  112.     End With  'ArrayButtonMasterForm.ArrayButton4
  113.     With .ArrayButton5
  114.       .Caption := "ArrayButton5"
  115.       .ZOrder := 9
  116.       .Move(5760, 450, 1350, 600)
  117.     End With  'ArrayButtonMasterForm.ArrayButton5
  118.     With .ArrayButton6
  119.       .Caption := "ArrayButton6"
  120.       .ZOrder := 10
  121.       .Move(300, 1065, 1350, 600)
  122.     End With  'ArrayButtonMasterForm.ArrayButton6
  123.     With .ArrayButton7
  124.       .Caption := "ArrayButton7"
  125.       .ZOrder := 11
  126.       .Move(1665, 1065, 1350, 600)
  127.     End With  'ArrayButtonMasterForm.ArrayButton7
  128.     With .ArrayButton8
  129.       .Caption := "ArrayButton8"
  130.       .ZOrder := 12
  131.       .Move(3030, 1065, 1350, 600)
  132.     End With  'ArrayButtonMasterForm.ArrayButton8
  133.     With .ArrayButton9
  134.       .Caption := "ArrayButton9"
  135.       .ZOrder := 13
  136.       .Move(4395, 1065, 1350, 600)
  137.     End With  'ArrayButtonMasterForm.ArrayButton9
  138.     With .ArrayButton10
  139.       .Caption := "ArrayButton10"
  140.       .ZOrder := 14
  141.       .Move(5760, 1065, 1350, 600)
  142.     End With  'ArrayButtonMasterForm.ArrayButton10
  143.     With .ArrayButton11
  144.       .Caption := "ArrayButton11"
  145.       .ZOrder := 15
  146.       .Move(300, 1680, 1350, 600)
  147.     End With  'ArrayButtonMasterForm.ArrayButton11
  148.     With .ArrayButton12
  149.       .Caption := "ArrayButton12"
  150.       .ZOrder := 16
  151.       .Move(1665, 1680, 1350, 600)
  152.     End With  'ArrayButtonMasterForm.ArrayButton12
  153.     With .ArrayButton13
  154.       .Caption := "ArrayButton13"
  155.       .ZOrder := 17
  156.       .Move(3030, 1680, 1350, 600)
  157.     End With  'ArrayButtonMasterForm.ArrayButton13
  158.     With .ArrayButton14
  159.       .Caption := "ArrayButton14"
  160.       .ZOrder := 18
  161.       .Move(4395, 1680, 1350, 600)
  162.     End With  'ArrayButtonMasterForm.ArrayButton14
  163.     With .ArrayButton15
  164.       .Caption := "ArrayButton15"
  165.       .ZOrder := 19
  166.       .Move(5760, 1680, 1350, 600)
  167.     End With  'ArrayButtonMasterForm.ArrayButton15
  168.     With .ArrayButton16
  169.       .Caption := "ArrayButton16"
  170.       .ZOrder := 20
  171.       .Move(300, 2295, 1350, 600)
  172.     End With  'ArrayButtonMasterForm.ArrayButton16
  173.     With .ArrayButton17
  174.       .Caption := "ArrayButton17"
  175.       .ZOrder := 21
  176.       .Move(1665, 2295, 1350, 600)
  177.     End With  'ArrayButtonMasterForm.ArrayButton17
  178.     With .ArrayButton18
  179.       .Caption := "ArrayButton18"
  180.       .ZOrder := 22
  181.       .Move(3030, 2295, 1350, 600)
  182.     End With  'ArrayButtonMasterForm.ArrayButton18
  183.     With .ArrayButton19
  184.       .Caption := "ArrayButton19"
  185.       .ZOrder := 23
  186.       .Move(4395, 2295, 1350, 600)
  187.     End With  'ArrayButtonMasterForm.ArrayButton19
  188.     With .ArrayButton20
  189.       .Caption := "ArrayButton20"
  190.       .ZOrder := 24
  191.       .Move(5760, 2295, 1350, 600)
  192.     End With  'ArrayButtonMasterForm.ArrayButton20
  193.     With .ArrayButton21
  194.       .Caption := "ArrayButton21"
  195.       .ZOrder := 25
  196.       .Move(300, 2910, 1350, 600)
  197.     End With  'ArrayButtonMasterForm.ArrayButton21
  198.     With .ArrayButton22
  199.       .Caption := "ArrayButton22"
  200.       .ZOrder := 26
  201.       .Move(1665, 2910, 1350, 600)
  202.     End With  'ArrayButtonMasterForm.ArrayButton22
  203.     With .ArrayButton23
  204.       .Caption := "ArrayButton23"
  205.       .ZOrder := 27
  206.       .Move(3030, 2910, 1350, 600)
  207.     End With  'ArrayButtonMasterForm.ArrayButton23
  208.     With .ArrayButton24
  209.       .Caption := "ArrayButton24"
  210.       .ZOrder := 28
  211.       .Move(4395, 2910, 1350, 600)
  212.     End With  'ArrayButtonMasterForm.ArrayButton24
  213.     With .ArrayButton25
  214.       .Caption := "ArrayButton25"
  215.       .ZOrder := 29
  216.       .Move(5760, 2910, 1350, 600)
  217.     End With  'ArrayButtonMasterForm.ArrayButton25
  218.     With .chkBold
  219.       .Caption := "Bold"
  220.       .ForeColor := 16711680
  221.       .Font := ArrayButtonMasterForm.font2
  222.       .ZOrder := 1
  223.       .Move(300, 3750, 900, 300)
  224.     End With  'ArrayButtonMasterForm.chkBold
  225.     With .chkItalic
  226.       .Caption := "Italic"
  227.       .ForeColor := 16711680
  228.       .Font := ArrayButtonMasterForm.font2
  229.       .ZOrder := 2
  230.       .Move(1950, 3750, 900, 300)
  231.     End With  'ArrayButtonMasterForm.chkItalic
  232.     With .chkUnderline
  233.       .Caption := "Underline"
  234.       .ForeColor := 16711680
  235.       .Font := ArrayButtonMasterForm.font2
  236.       .ZOrder := 3
  237.       .Move(3600, 3750, 1410, 300)
  238.     End With  'ArrayButtonMasterForm.chkUnderline
  239.     With .chkStrikethru
  240.       .Caption := "Strikethru"
  241.       .ForeColor := 16711680
  242.       .Font := ArrayButtonMasterForm.font2
  243.       .ZOrder := 4
  244.       .Move(5700, 3750, 1410, 300)
  245.     End With  'ArrayButtonMasterForm.chkStrikethru
  246.     With .font
  247.       .FaceName := "Times New Roman"
  248.       .Size := 9.000000
  249.       .Bold := False
  250.       .Italic := False
  251.       .Strikethru := False
  252.     End With  'ArrayButtonMasterForm.font
  253.     With .font2
  254.       .FaceName := "Arial"
  255.       .Size := 0.000000
  256.       .Bold := True
  257.       .Italic := False
  258.       .Strikethru := False
  259.     End With  'ArrayButtonMasterForm.font2
  260.     With .helpfile
  261.       .FileName := "W:\bootcamp\basic\arraybtn\arraybtn.hlp"
  262.     End With  'ArrayButtonMasterForm.helpfile
  263.   End With  'ArrayButtonMasterForm
  264. End Code
  265.