home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l408 / 2.img / EXAMPLES.EXE / EXAMPLES / EDITCOL / EDCOTEST.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1991-04-26  |  4.1 KB  |  95 lines

  1. EdCoTest
  2. Test EditColors
  3. System
  4. Form1,
  5. System
  6. System
  7. System
  8. System
  9. System
  10. System
  11. System
  12. System
  13. System
  14. System
  15. System
  16. System
  17. System
  18. System
  19. System
  20. System
  21. System
  22. System
  23. System
  24. System
  25. System
  26. System
  27. System
  28. System
  29. System
  30. System
  31. System
  32. System
  33. System
  34. System
  35. System
  36. System
  37. Label1
  38. To edit a color, either click on the appropriate color box (above), or click on the "Edit Colors" button to edit the color of the selected picturebox.
  39. System
  40. Label2
  41. While you're editing colors, notice how the scrollbars react instantaneously. That's because the scrollbars are VBTools Custom Controls!
  42. TestColCommand
  43. &Edit Colors
  44. System
  45. TestColCommand
  46. System
  47. EdCoTest
  48. Picture1
  49. Command1
  50. TestColCommand
  51. TestColCommand_Click
  52. Index
  53. Form_Click
  54. @    Form_Load
  55.     BackColor
  56. EditColors
  57.     ColorTextM
  58. ColorBar
  59. EdColVal
  60.     EdColFill
  61. EdColCommand
  62. Green
  63. Color
  64.     ForeColorB
  65. @    Box_Click
  66. WhichColorBox
  67. Enabled
  68. False
  69. EditCol
  70. RestoreColor
  71. Value
  72. MhEditColors
  73. CurrentColor
  74. Label1
  75. Label2.
  76. Form_GotFocus
  77. Click
  78.     KickStart
  79. SelectedBox
  80. Label1_Click
  81.  Note that each of the controls in EditColors has af
  82.  call to ShowRgbValues in the GotFocus event. 
  83.  This is because during early testing of Visual Basic,
  84.  if controls existed on a form, then the form itself
  85.  did not get a GotFocus event.
  86. TestColCommand_Click
  87.  Edit colors
  88.  Pass the selected box, plus the control you
  89.  want to set focus to when you're done
  90.  End the program
  91. Form_Load
  92.  Paint some colors for the user to edit6
  93. Box_Click
  94.  Click the 'Edit Colors' buttonE
  95.