home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD68236162000.psc / frmMain.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-06-16  |  29.6 KB  |  1,022 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Begin VB.Form frmColorPicker 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Color Scheme ..."
  6.    ClientHeight    =   5235
  7.    ClientLeft      =   150
  8.    ClientTop       =   435
  9.    ClientWidth     =   3225
  10.    ControlBox      =   0   'False
  11.    Icon            =   "frmMain.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   5235
  16.    ScaleWidth      =   3225
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  'CenterScreen
  19.    Begin VB.PictureBox Picture1 
  20.       BackColor       =   &H00400040&
  21.       Height          =   255
  22.       Index           =   29
  23.       Left            =   5040
  24.       ScaleHeight     =   195
  25.       ScaleWidth      =   195
  26.       TabIndex        =   68
  27.       Top             =   2520
  28.       Width           =   255
  29.    End
  30.    Begin VB.PictureBox Picture1 
  31.       BackColor       =   &H00800080&
  32.       Height          =   255
  33.       Index           =   28
  34.       Left            =   4680
  35.       ScaleHeight     =   195
  36.       ScaleWidth      =   195
  37.       TabIndex        =   67
  38.       Top             =   2520
  39.       Width           =   255
  40.    End
  41.    Begin VB.PictureBox Picture1 
  42.       BackColor       =   &H00C000C0&
  43.       Height          =   255
  44.       Index           =   27
  45.       Left            =   4320
  46.       ScaleHeight     =   195
  47.       ScaleWidth      =   195
  48.       TabIndex        =   66
  49.       Top             =   2520
  50.       Width           =   255
  51.    End
  52.    Begin VB.PictureBox Picture1 
  53.       BackColor       =   &H00FFFFC0&
  54.       Height          =   255
  55.       Index           =   49
  56.       Left            =   3240
  57.       ScaleHeight     =   195
  58.       ScaleWidth      =   195
  59.       TabIndex        =   65
  60.       Top             =   1800
  61.       Width           =   255
  62.    End
  63.    Begin VB.PictureBox Picture1 
  64.       BackColor       =   &H00FFFF80&
  65.       Height          =   255
  66.       Index           =   48
  67.       Left            =   3600
  68.       ScaleHeight     =   195
  69.       ScaleWidth      =   195
  70.       TabIndex        =   64
  71.       Top             =   1800
  72.       Width           =   255
  73.    End
  74.    Begin VB.PictureBox Picture1 
  75.       BackColor       =   &H00FFFF00&
  76.       Height          =   255
  77.       Index           =   47
  78.       Left            =   3960
  79.       ScaleHeight     =   195
  80.       ScaleWidth      =   195
  81.       TabIndex        =   63
  82.       Top             =   1800
  83.       Width           =   255
  84.    End
  85.    Begin VB.PictureBox Picture1 
  86.       BackColor       =   &H00C0C000&
  87.       Height          =   255
  88.       Index           =   46
  89.       Left            =   4320
  90.       ScaleHeight     =   195
  91.       ScaleWidth      =   195
  92.       TabIndex        =   62
  93.       Top             =   1800
  94.       Width           =   255
  95.    End
  96.    Begin VB.PictureBox Picture1 
  97.       BackColor       =   &H00808000&
  98.       Height          =   255
  99.       Index           =   45
  100.       Left            =   4680
  101.       ScaleHeight     =   195
  102.       ScaleWidth      =   195
  103.       TabIndex        =   61
  104.       Top             =   1800
  105.       Width           =   255
  106.    End
  107.    Begin VB.PictureBox Picture1 
  108.       BackColor       =   &H00FF8080&
  109.       Height          =   255
  110.       Index           =   44
  111.       Left            =   3600
  112.       ScaleHeight     =   195
  113.       ScaleWidth      =   195
  114.       TabIndex        =   60
  115.       Top             =   2160
  116.       Width           =   255
  117.    End
  118.    Begin VB.PictureBox Picture1 
  119.       BackColor       =   &H00FF0000&
  120.       Height          =   255
  121.       Index           =   43
  122.       Left            =   3960
  123.       ScaleHeight     =   195
  124.       ScaleWidth      =   195
  125.       TabIndex        =   59
  126.       Top             =   2160
  127.       Width           =   255
  128.    End
  129.    Begin VB.PictureBox Picture1 
  130.       BackColor       =   &H00C00000&
  131.       Height          =   255
  132.       Index           =   42
  133.       Left            =   4320
  134.       ScaleHeight     =   195
  135.       ScaleWidth      =   195
  136.       TabIndex        =   58
  137.       Top             =   2160
  138.       Width           =   255
  139.    End
  140.    Begin VB.PictureBox Picture1 
  141.       BackColor       =   &H00800000&
  142.       Height          =   255
  143.       Index           =   41
  144.       Left            =   4680
  145.       ScaleHeight     =   195
  146.       ScaleWidth      =   195
  147.       TabIndex        =   57
  148.       Top             =   2160
  149.       Width           =   255
  150.    End
  151.    Begin VB.PictureBox Picture1 
  152.       BackColor       =   &H00FFC0FF&
  153.       Height          =   255
  154.       Index           =   40
  155.       Left            =   3240
  156.       ScaleHeight     =   195
  157.       ScaleWidth      =   195
  158.       TabIndex        =   56
  159.       Top             =   2520
  160.       Width           =   255
  161.    End
  162.    Begin VB.PictureBox Picture1 
  163.       BackColor       =   &H00FF80FF&
  164.       Height          =   255
  165.       Index           =   39
  166.       Left            =   3600
  167.       ScaleHeight     =   195
  168.       ScaleWidth      =   195
  169.       TabIndex        =   55
  170.       Top             =   2520
  171.       Width           =   255
  172.    End
  173.    Begin VB.PictureBox Picture1 
  174.       BackColor       =   &H00FF00FF&
  175.       Height          =   255
  176.       Index           =   38
  177.       Left            =   3960
  178.       ScaleHeight     =   195
  179.       ScaleWidth      =   195
  180.       TabIndex        =   54
  181.       Top             =   2520
  182.       Width           =   255
  183.    End
  184.    Begin VB.PictureBox Picture1 
  185.       BackColor       =   &H00400000&
  186.       Height          =   255
  187.       Index           =   37
  188.       Left            =   5040
  189.       ScaleHeight     =   195
  190.       ScaleWidth      =   195
  191.       TabIndex        =   53
  192.       Top             =   2160
  193.       Width           =   255
  194.    End
  195.    Begin VB.PictureBox Picture1 
  196.       BackColor       =   &H00404000&
  197.       Height          =   255
  198.       Index           =   36
  199.       Left            =   5040
  200.       ScaleHeight     =   195
  201.       ScaleWidth      =   195
  202.       TabIndex        =   52
  203.       Top             =   1800
  204.       Width           =   255
  205.    End
  206.    Begin VB.PictureBox Picture1 
  207.       BackColor       =   &H00004000&
  208.       Height          =   255
  209.       Index           =   35
  210.       Left            =   5040
  211.       ScaleHeight     =   195
  212.       ScaleWidth      =   195
  213.       TabIndex        =   51
  214.       Top             =   1440
  215.       Width           =   255
  216.    End
  217.    Begin VB.PictureBox Picture1 
  218.       BackColor       =   &H00004040&
  219.       Height          =   255
  220.       Index           =   34
  221.       Left            =   5040
  222.       ScaleHeight     =   195
  223.       ScaleWidth      =   195
  224.       TabIndex        =   50
  225.       Top             =   1080
  226.       Width           =   255
  227.    End
  228.    Begin VB.PictureBox Picture1 
  229.       BackColor       =   &H00404080&
  230.       Height          =   255
  231.       Index           =   33
  232.       Left            =   5040
  233.       ScaleHeight     =   195
  234.       ScaleWidth      =   195
  235.       TabIndex        =   49
  236.       Top             =   720
  237.       Width           =   255
  238.    End
  239.    Begin VB.PictureBox Picture1 
  240.       BackColor       =   &H00FFC0C0&
  241.       Height          =   255
  242.       Index           =   32
  243.       Left            =   3240
  244.       ScaleHeight     =   195
  245.       ScaleWidth      =   195
  246.       TabIndex        =   48
  247.       Top             =   2160
  248.       Width           =   255
  249.    End
  250.    Begin VB.PictureBox Picture1 
  251.       BackColor       =   &H00000000&
  252.       Height          =   255
  253.       Index           =   26
  254.       Left            =   5040
  255.       ScaleHeight     =   195
  256.       ScaleWidth      =   195
  257.       TabIndex        =   47
  258.       Top             =   0
  259.       Width           =   255
  260.    End
  261.    Begin VB.PictureBox Picture1 
  262.       BackColor       =   &H00000040&
  263.       Height          =   255
  264.       Index           =   1
  265.       Left            =   5040
  266.       ScaleHeight     =   195
  267.       ScaleWidth      =   195
  268.       TabIndex        =   46
  269.       Top             =   360
  270.       Width           =   255
  271.    End
  272.    Begin VB.PictureBox Picture1 
  273.       BackColor       =   &H00FFFFFF&
  274.       Height          =   255
  275.       Index           =   25
  276.       Left            =   3240
  277.       ScaleHeight     =   195
  278.       ScaleWidth      =   195
  279.       TabIndex        =   45
  280.       Top             =   0
  281.       Width           =   255
  282.    End
  283.    Begin VB.PictureBox Picture1 
  284.       BackColor       =   &H00E0E0E0&
  285.       Height          =   255
  286.       Index           =   24
  287.       Left            =   3600
  288.       ScaleHeight     =   195
  289.       ScaleWidth      =   195
  290.       TabIndex        =   44
  291.       Top             =   0
  292.       Width           =   255
  293.    End
  294.    Begin VB.PictureBox Picture1 
  295.       BackColor       =   &H00C0C0C0&
  296.       Height          =   255
  297.       Index           =   23
  298.       Left            =   3960
  299.       ScaleHeight     =   195
  300.       ScaleWidth      =   195
  301.       TabIndex        =   43
  302.       Top             =   0
  303.       Width           =   255
  304.    End
  305.    Begin VB.PictureBox Picture1 
  306.       BackColor       =   &H00808080&
  307.       Height          =   255
  308.       Index           =   22
  309.       Left            =   4320
  310.       ScaleHeight     =   195
  311.       ScaleWidth      =   195
  312.       TabIndex        =   42
  313.       Top             =   0
  314.       Width           =   255
  315.    End
  316.    Begin VB.PictureBox Picture1 
  317.       BackColor       =   &H00404040&
  318.       Height          =   255
  319.       Index           =   21
  320.       Left            =   4680
  321.       ScaleHeight     =   195
  322.       ScaleWidth      =   195
  323.       TabIndex        =   41
  324.       Top             =   0
  325.       Width           =   255
  326.    End
  327.    Begin VB.PictureBox Picture1 
  328.       BackColor       =   &H008080FF&
  329.       Height          =   255
  330.       Index           =   20
  331.       Left            =   3600
  332.       ScaleHeight     =   195
  333.       ScaleWidth      =   195
  334.       TabIndex        =   40
  335.       Top             =   360
  336.       Width           =   255
  337.    End
  338.    Begin VB.PictureBox Picture1 
  339.       BackColor       =   &H000000FF&
  340.       Height          =   255
  341.       Index           =   19
  342.       Left            =   3960
  343.       ScaleHeight     =   195
  344.       ScaleWidth      =   195
  345.       TabIndex        =   39
  346.       Top             =   360
  347.       Width           =   255
  348.    End
  349.    Begin VB.PictureBox Picture1 
  350.       BackColor       =   &H000000C0&
  351.       Height          =   255
  352.       Index           =   18
  353.       Left            =   4320
  354.       ScaleHeight     =   195
  355.       ScaleWidth      =   195
  356.       TabIndex        =   38
  357.       Top             =   360
  358.       Width           =   255
  359.    End
  360.    Begin VB.PictureBox Picture1 
  361.       BackColor       =   &H00000080&
  362.       Height          =   255
  363.       Index           =   17
  364.       Left            =   4680
  365.       ScaleHeight     =   195
  366.       ScaleWidth      =   195
  367.       TabIndex        =   37
  368.       Top             =   360
  369.       Width           =   255
  370.    End
  371.    Begin VB.PictureBox Picture1 
  372.       BackColor       =   &H00C0E0FF&
  373.       Height          =   255
  374.       Index           =   16
  375.       Left            =   3240
  376.       ScaleHeight     =   195
  377.       ScaleWidth      =   195
  378.       TabIndex        =   36
  379.       Top             =   720
  380.       Width           =   255
  381.    End
  382.    Begin VB.PictureBox Picture1 
  383.       BackColor       =   &H0080C0FF&
  384.       Height          =   255
  385.       Index           =   15
  386.       Left            =   3600
  387.       ScaleHeight     =   195
  388.       ScaleWidth      =   195
  389.       TabIndex        =   35
  390.       Top             =   720
  391.       Width           =   255
  392.    End
  393.    Begin VB.PictureBox Picture1 
  394.       BackColor       =   &H000080FF&
  395.       Height          =   255
  396.       Index           =   14
  397.       Left            =   3960
  398.       ScaleHeight     =   195
  399.       ScaleWidth      =   195
  400.       TabIndex        =   34
  401.       Top             =   720
  402.       Width           =   255
  403.    End
  404.    Begin VB.PictureBox Picture1 
  405.       BackColor       =   &H000040C0&
  406.       Height          =   255
  407.       Index           =   13
  408.       Left            =   4320
  409.       ScaleHeight     =   195
  410.       ScaleWidth      =   195
  411.       TabIndex        =   33
  412.       Top             =   720
  413.       Width           =   255
  414.    End
  415.    Begin VB.PictureBox Picture1 
  416.       BackColor       =   &H00004080&
  417.       Height          =   255
  418.       Index           =   12
  419.       Left            =   4680
  420.       ScaleHeight     =   195
  421.       ScaleWidth      =   195
  422.       TabIndex        =   32
  423.       Top             =   720
  424.       Width           =   255
  425.    End
  426.    Begin VB.PictureBox Picture1 
  427.       BackColor       =   &H00C0FFFF&
  428.       Height          =   255
  429.       Index           =   11
  430.       Left            =   3240
  431.       ScaleHeight     =   195
  432.       ScaleWidth      =   195
  433.       TabIndex        =   31
  434.       Top             =   1080
  435.       Width           =   255
  436.    End
  437.    Begin VB.PictureBox Picture1 
  438.       BackColor       =   &H0080FFFF&
  439.       Height          =   255
  440.       Index           =   10
  441.       Left            =   3600
  442.       ScaleHeight     =   195
  443.       ScaleWidth      =   195
  444.       TabIndex        =   30
  445.       Top             =   1080
  446.       Width           =   255
  447.    End
  448.    Begin VB.PictureBox Picture1 
  449.       BackColor       =   &H0000FFFF&
  450.       Height          =   255
  451.       Index           =   9
  452.       Left            =   3960
  453.       ScaleHeight     =   195
  454.       ScaleWidth      =   195
  455.       TabIndex        =   29
  456.       Top             =   1080
  457.       Width           =   255
  458.    End
  459.    Begin VB.PictureBox Picture1 
  460.       BackColor       =   &H0000C0C0&
  461.       Height          =   255
  462.       Index           =   8
  463.       Left            =   4320
  464.       ScaleHeight     =   195
  465.       ScaleWidth      =   195
  466.       TabIndex        =   28
  467.       Top             =   1080
  468.       Width           =   255
  469.    End
  470.    Begin VB.PictureBox Picture1 
  471.       BackColor       =   &H00008080&
  472.       Height          =   255
  473.       Index           =   7
  474.       Left            =   4680
  475.       ScaleHeight     =   195
  476.       ScaleWidth      =   195
  477.       TabIndex        =   27
  478.       Top             =   1080
  479.       Width           =   255
  480.    End
  481.    Begin VB.PictureBox Picture1 
  482.       BackColor       =   &H00C0FFC0&
  483.       Height          =   255
  484.       Index           =   6
  485.       Left            =   3240
  486.       ScaleHeight     =   195
  487.       ScaleWidth      =   195
  488.       TabIndex        =   26
  489.       Top             =   1440
  490.       Width           =   255
  491.    End
  492.    Begin VB.PictureBox Picture1 
  493.       BackColor       =   &H0080FF80&
  494.       Height          =   255
  495.       Index           =   5
  496.       Left            =   3600
  497.       ScaleHeight     =   195
  498.       ScaleWidth      =   195
  499.       TabIndex        =   25
  500.       Top             =   1440
  501.       Width           =   255
  502.    End
  503.    Begin VB.PictureBox Picture1 
  504.       BackColor       =   &H0000FF00&
  505.       Height          =   255
  506.       Index           =   4
  507.       Left            =   3960
  508.       ScaleHeight     =   195
  509.       ScaleWidth      =   195
  510.       TabIndex        =   24
  511.       Top             =   1440
  512.       Width           =   255
  513.    End
  514.    Begin VB.PictureBox Picture1 
  515.       BackColor       =   &H0000C000&
  516.       Height          =   255
  517.       Index           =   3
  518.       Left            =   4320
  519.       ScaleHeight     =   195
  520.       ScaleWidth      =   195
  521.       TabIndex        =   23
  522.       Top             =   1440
  523.       Width           =   255
  524.    End
  525.    Begin VB.PictureBox Picture1 
  526.       BackColor       =   &H00008000&
  527.       Height          =   255
  528.       Index           =   2
  529.       Left            =   4680
  530.       ScaleHeight     =   195
  531.       ScaleWidth      =   195
  532.       TabIndex        =   22
  533.       Top             =   1440
  534.       Width           =   255
  535.    End
  536.    Begin VB.PictureBox Picture1 
  537.       BackColor       =   &H00C0C0FF&
  538.       Height          =   255
  539.       Index           =   0
  540.       Left            =   3240
  541.       ScaleHeight     =   195
  542.       ScaleWidth      =   195
  543.       TabIndex        =   21
  544.       Top             =   360
  545.       Width           =   255
  546.    End
  547.    Begin VB.PictureBox PHEX 
  548.       BorderStyle     =   0  'None
  549.       Height          =   615
  550.       Left            =   120
  551.       ScaleHeight     =   615
  552.       ScaleWidth      =   3135
  553.       TabIndex        =   18
  554.       TabStop         =   0   'False
  555.       Top             =   6240
  556.       Width           =   3135
  557.       Begin VB.TextBox txtHex 
  558.          Height          =   285
  559.          Left            =   0
  560.          TabIndex        =   19
  561.          Text            =   "#FFFFFF"
  562.          Top             =   240
  563.          Width           =   1695
  564.       End
  565.       Begin VB.Label Label1 
  566.          Caption         =   "Hex Value"
  567.          Height          =   255
  568.          Index           =   5
  569.          Left            =   0
  570.          TabIndex        =   20
  571.          Top             =   0
  572.          Width           =   975
  573.       End
  574.    End
  575.    Begin VB.PictureBox PLONG 
  576.       BorderStyle     =   0  'None
  577.       Height          =   615
  578.       Left            =   120
  579.       ScaleHeight     =   615
  580.       ScaleWidth      =   3135
  581.       TabIndex        =   15
  582.       TabStop         =   0   'False
  583.       Top             =   5400
  584.       Width           =   3135
  585.       Begin VB.TextBox txtLong 
  586.          Height          =   285
  587.          Left            =   0
  588.          TabIndex        =   16
  589.          Text            =   "12870716"
  590.          Top             =   240
  591.          Width           =   1695
  592.       End
  593.       Begin VB.Label Label1 
  594.          Caption         =   "Long Value"
  595.          Height          =   255
  596.          Index           =   4
  597.          Left            =   0
  598.          TabIndex        =   17
  599.          Top             =   0
  600.          Width           =   975
  601.       End
  602.    End
  603.    Begin VB.PictureBox PRGB 
  604.       BorderStyle     =   0  'None
  605.       Height          =   615
  606.       Left            =   120
  607.       ScaleHeight     =   615
  608.       ScaleWidth      =   3135
  609.       TabIndex        =   11
  610.       Top             =   3360
  611.       Width           =   3135
  612.       Begin VB.TextBox txtR 
  613.          Height          =   285
  614.          Left            =   0
  615.          TabIndex        =   1
  616.          Text            =   "255"
  617.          Top             =   240
  618.          Width           =   855
  619.       End
  620.       Begin VB.TextBox txtB 
  621.          Height          =   285
  622.          Left            =   2160
  623.          TabIndex        =   3
  624.          Text            =   "255"
  625.          Top             =   240
  626.          Width           =   855
  627.       End
  628.       Begin VB.TextBox txtG 
  629.          Height          =   285
  630.          Left            =   1080
  631.          TabIndex        =   2
  632.          Text            =   "255"
  633.          Top             =   240
  634.          Width           =   855
  635.       End
  636.       Begin VB.Label Label1 
  637.          Caption         =   "Red"
  638.          Height          =   255
  639.          Index           =   0
  640.          Left            =   0
  641.          TabIndex        =   14
  642.          Top             =   0
  643.          Width           =   975
  644.       End
  645.       Begin VB.Label Label1 
  646.          Caption         =   "Green"
  647.          Height          =   255
  648.          Index           =   1
  649.          Left            =   1080
  650.          TabIndex        =   13
  651.          Top             =   0
  652.          Width           =   975
  653.       End
  654.       Begin VB.Label Label1 
  655.          Caption         =   "Blue"
  656.          Height          =   255
  657.          Index           =   2
  658.          Left            =   2160
  659.          TabIndex        =   12
  660.          Top             =   0
  661.          Width           =   975
  662.       End
  663.    End
  664.    Begin MSComDlg.CommonDialog cmd 
  665.       Left            =   720
  666.       Top             =   840
  667.       _ExtentX        =   847
  668.       _ExtentY        =   847
  669.       _Version        =   393216
  670.    End
  671.    Begin VB.CommandButton Command3 
  672.       Caption         =   ">>"
  673.       Height          =   375
  674.       Left            =   2760
  675.       TabIndex        =   6
  676.       Top             =   4800
  677.       Width           =   375
  678.    End
  679.    Begin VB.CommandButton Command2 
  680.       Caption         =   "&Cancel"
  681.       Height          =   375
  682.       Left            =   1440
  683.       TabIndex        =   5
  684.       Top             =   4800
  685.       Width           =   1215
  686.    End
  687.    Begin VB.CommandButton cmdOk 
  688.       Caption         =   "&OK"
  689.       Height          =   375
  690.       Left            =   120
  691.       TabIndex        =   4
  692.       Top             =   4800
  693.       Width           =   1215
  694.    End
  695.    Begin VB.PictureBox Light 
  696.       BackColor       =   &H00FFFFFF&
  697.       Height          =   2850
  698.       Left            =   2880
  699.       MouseIcon       =   "frmMain.frx":0E42
  700.       MousePointer    =   99  'Custom
  701.       ScaleHeight     =   2790
  702.       ScaleWidth      =   165
  703.       TabIndex        =   9
  704.       TabStop         =   0   'False
  705.       Top             =   0
  706.       Width           =   230
  707.    End
  708.    Begin VB.PictureBox Picker1 
  709.       AutoSize        =   -1  'True
  710.       BackColor       =   &H00FFFFFF&
  711.       Height          =   2850
  712.       Left            =   120
  713.       MouseIcon       =   "frmMain.frx":114C
  714.       MousePointer    =   99  'Custom
  715.       Picture         =   "frmMain.frx":1456
  716.       ScaleHeight     =   2790
  717.       ScaleWidth      =   2625
  718.       TabIndex        =   8
  719.       TabStop         =   0   'False
  720.       Top             =   0
  721.       Width           =   2685
  722.    End
  723.    Begin VB.PictureBox Picture4 
  724.       BackColor       =   &H00FFFFFF&
  725.       Height          =   435
  726.       Left            =   120
  727.       ScaleHeight     =   375
  728.       ScaleWidth      =   2925
  729.       TabIndex        =   7
  730.       Top             =   4200
  731.       Width           =   2985
  732.    End
  733.    Begin VB.PictureBox Picture3 
  734.       AutoSize        =   -1  'True
  735.       BackColor       =   &H00C0C0C0&
  736.       BorderStyle     =   0  'None
  737.       Height          =   255
  738.       Left            =   120
  739.       MouseIcon       =   "frmMain.frx":19438
  740.       MousePointer    =   99  'Custom
  741.       Picture         =   "frmMain.frx":19742
  742.       ScaleHeight     =   255
  743.       ScaleWidth      =   3000
  744.       TabIndex        =   0
  745.       TabStop         =   0   'False
  746.       Top             =   2880
  747.       Width           =   3000
  748.    End
  749.    Begin VB.Label Label1 
  750.       Caption         =   "Selected Color"
  751.       Height          =   255
  752.       Index           =   3
  753.       Left            =   120
  754.       TabIndex        =   10
  755.       Top             =   3960
  756.       Width           =   1575
  757.    End
  758.    Begin VB.Menu Shape 
  759.       Caption         =   "&Shape"
  760.       Enabled         =   0   'False
  761.       Begin VB.Menu Sq 
  762.          Caption         =   "&Square Picker"
  763.       End
  764.       Begin VB.Menu Circle 
  765.          Caption         =   "&Circle Picker"
  766.       End
  767.    End
  768.    Begin VB.Menu Format 
  769.       Caption         =   "&Format"
  770.       Begin VB.Menu mnuRGB 
  771.          Caption         =   "&RGB Values"
  772.       End
  773.       Begin VB.Menu mnuHEX 
  774.          Caption         =   "&HEX Value"
  775.       End
  776.       Begin VB.Menu mnuLong 
  777.          Caption         =   "&Long Value"
  778.       End
  779.    End
  780. Attribute VB_Name = "frmColorPicker"
  781. Attribute VB_GlobalNameSpace = False
  782. Attribute VB_Creatable = False
  783. Attribute VB_PredeclaredId = True
  784. Attribute VB_Exposed = False
  785. '# Color Picker v. 1.00.0 Copyright (C) 2000 Vladimir S. Pekulas
  786. '# If you are going to use this program, please include my credits.
  787. '# (C) 2000 Vladimir S. Pekulas
  788. '# http://www.BohemiaTrading.com
  789. '# vpekulas@home.com
  790. Public LongTransfer As Double 'Long
  791. Public HexTransfer As String 'Hex
  792. Public RTransfer As Double 'Red
  793. Public BTransfer As Double 'Blue
  794. Public GTransfer As Double 'Green
  795. Dim RGBValues(4) As Long
  796. Dim NowColor As Double
  797. Dim XTOP As Double, XLEFT As Double
  798. Private Sub cmdOk_Click()
  799. '# Save values for futher use
  800. LongTransfer = txtLong.Text
  801. HexTransfer = txtHex.Text
  802. RTransfer = txtR.Text
  803. GTransfer = txtG.Text
  804. BTransfer = txtB.Text
  805. '# Unload Form
  806. Unload Me
  807. End Sub
  808. Private Sub Command2_Click()
  809. Unload Me
  810. End Sub
  811. Private Sub Command3_Click()
  812.   If Me.Width = 5490 Then
  813.     Me.Width = 3315
  814.   Else
  815.     Me.Width = 5490
  816.   End If
  817. End Sub
  818. Private Sub Form_Load()
  819.     PLONG.Visible = False
  820.     PHEX.Visible = False
  821.     PRGB.Visible = True
  822.     XTOP = PRGB.Top
  823.     XLEFT = PRGB.Left
  824.     PLONG.Visible = False
  825.     PRGB.Visible = False
  826.     PHEX.Visible = True
  827.     PHEX.Top = XTOP
  828.     PHEX.Left = XLEFT
  829. End Sub
  830. Private Sub mnuHEX_Click()
  831.     PLONG.Visible = False
  832.     PRGB.Visible = False
  833.     PHEX.Top = XTOP
  834.     PHEX.Left = XLEFT
  835.     PHEX.Visible = True
  836. End Sub
  837. Private Sub mnuLong_Click()
  838. 'MsgBox "Note: Internet Browser can not use other the HEX value.", vbInformation
  839.     PRGB.Visible = False
  840.     PHEX.Visible = False
  841.     PLONG.Top = XTOP
  842.     PLONG.Left = XLEFT
  843.     PLONG.Visible = True
  844. End Sub
  845. Private Sub mnuRGB_Click()
  846. 'MsgBox "Note: Internet Browser can not use other the HEX value.", vbInformation
  847.     PLONG.Visible = False
  848.     PHEX.Visible = False
  849.     PRGB.Top = XTOP
  850.     PRGB.Left = XLEFT
  851.     PRGB.Visible = True
  852. End Sub
  853. Private Sub Light_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  854.  On Error Resume Next
  855.  If Button = 1 Then
  856.     Picture4.BackColor = Light.Point(X, Y)
  857.     NowColor = Picture4.BackColor
  858. txtLong.Text = NowColor
  859. RGBPicker
  860. HexColor
  861.  End If
  862. End Sub
  863. Function HexColor() '#HEX Values
  864. HexRed = Hex$(txtR.Text)
  865. If Len(HexRed) = 1 Then HexRed = "0" & HexRed
  866. HexGreen = Hex$(txtG.Text)
  867. If Len(HexGreen) = 1 Then HexGreen = "0" & HexGreen
  868. HexBlue = Hex$(txtB.Text)
  869. If Len(HexBlue) = 1 Then HexBlue = "0" & HexBlue
  870. txtHex.Text = "#" & HexRed & HexGreen & HexBlue
  871. End Function
  872. Private Sub Picker1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  873. On Error Resume Next
  874.  If Button = 1 Then
  875.    Picker1.Cls
  876.    Picture4.BackColor = Picker1.Point(X, Y)
  877.    NowColor = Picture4.BackColor
  878.    txtLong.Text = NowColor
  879.    RGBPicker
  880.    HexColor
  881.  End If
  882. End Sub
  883. Private Sub Picker1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  884. On Error Resume Next
  885.  If Button = 1 Then
  886.     Picker1.Cls
  887.     Picker1.DrawWidth = 2
  888.     Picker1.ForeColor = vbWhite
  889.     Picker1.Line (X, Y)-(X, Y - 120)
  890.     Picker1.Line (X, Y)-(X - 120, Y)
  891.  End If
  892. End Sub
  893. Private Sub Picture1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  894.  If Button = 1 Then
  895.     Picker1.Cls
  896.     Picture4.BackColor = Picture1(Index).BackColor
  897.     NowColor = Picture4.BackColor
  898.     txtLong.Text = NowColor
  899.     RGBPicker
  900.     HexColor
  901.  End If
  902. End Sub
  903. Private Sub Picture1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  904.  If Button = 1 Then
  905.     Picker1.Cls
  906.     Picture4.BackColor = Picture1(Index).BackColor
  907.     NowColor = Picture4.BackColor
  908.     txtLong.Text = NowColor
  909.     RGBPicker
  910.     HexColor
  911.  End If
  912. End Sub
  913. Private Sub Picture3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  914. On Error Resume Next
  915.  If Button = 1 Then
  916.     Picker1.Cls
  917.     Picture4.BackColor = Picture3.Point(X, Y)
  918.     NowColor = Picture4.BackColor
  919.     txtLong.Text = NowColor
  920.     RGBPicker
  921.     HexColor
  922.  End If
  923. End Sub
  924. '#Raster of NowColor and RGB values
  925. Function RGBPicker()
  926. RGBValues(3) = CLng(NowColor)
  927. RGBValues(0) = RGBValues(3) And 255
  928. RGBValues(1) = (RGBValues(3) And 65280) \ 256&
  929. RGBValues(2) = (RGBValues(3) And 16711680) \ 65535
  930. txtR.Text = RGBValues(0)
  931. txtG.Text = RGBValues(1)
  932. txtB.Text = RGBValues(2)
  933. Light.DrawWidth = 2
  934. P = 0
  935. For I = 1 To 254
  936. P = P + 13
  937. Light.ForeColor = RGB(RGBValues(0), RGBValues(1), I)
  938. Light.Line (0, P)-(245, P)
  939. Next I
  940. End Function
  941. Private Sub txtB_GotFocus()
  942. L = Len(txtB.Text)
  943. txtB.SelLength = L
  944. End Sub
  945. '# Blue of RGB
  946. Private Sub txtB_KeyDown(KeyCode As Integer, Shift As Integer)
  947. On Error Resume Next
  948.     If KeyCode = 13 Then
  949. If txtB.Text > 255 Then '#0 to 255 only
  950.  MsgBox "Number between 0 to 255 only!", vbInformation
  951.  txtB.Text = 0
  952.  Exit Sub
  953. End If
  954.      If txtR.Text = "" Then txtR.Text = 0
  955.      If txtG.Text = "" Then txtG.Text = 0
  956.      If txtB.Text = "" Then txtB.Text = 0
  957.      Picture4.BackColor = RGB(txtR.Text, txtG.Text, txtB.Text)
  958. Light.DrawWidth = 2
  959. P = 0
  960. For I = 1 To 254
  961. P = P + 13
  962. Light.ForeColor = RGB(txtR.Text, txtG.Text, I)
  963. Light.Line (0, P)-(245, P)
  964. Next I
  965. HexColor
  966.     End If
  967. End Sub
  968. Private Sub txtG_GotFocus()
  969. L = Len(txtG.Text)
  970. txtG.SelLength = L
  971. End Sub
  972. '#Green of RGB
  973. Private Sub txtG_KeyDown(KeyCode As Integer, Shift As Integer)
  974. On Error Resume Next
  975.     If KeyCode = 13 Then
  976. If txtG.Text > 255 Then '#0 to 255 only
  977.  MsgBox "Number between 0 to 255 only!", vbInformation
  978.  txtG.Text = 0
  979.  Exit Sub
  980. End If
  981.      If txtR.Text = "" Then txtR.Text = 0
  982.      If txtG.Text = "" Then txtG.Text = 0
  983.      If txtB.Text = "" Then txtB.Text = 0
  984.      Picture4.BackColor = RGB(txtR.Text, txtG.Text, txtB.Text)
  985. Light.DrawWidth = 2
  986. P = 0
  987. For I = 1 To 254
  988. P = P + 13
  989. Light.ForeColor = RGB(txtR.Text, I, txtB.Text)
  990. Light.Line (0, P)-(245, P)
  991. Next I
  992. HexColor
  993.     End If
  994. End Sub
  995. Private Sub txtR_GotFocus()
  996. L = Len(txtR.Text)
  997. txtR.SelLength = L
  998. End Sub
  999. '#Red of RGB
  1000. Private Sub txtR_KeyDown(KeyCode As Integer, Shift As Integer)
  1001. On Error Resume Next
  1002.     If KeyCode = 13 Then
  1003. If txtR.Text > 255 Then '#0 to 255 only
  1004.  MsgBox "Number between 0 to 255 only!", vbInformation
  1005.  txtR.Text = 0
  1006.  Exit Sub
  1007. End If
  1008.      If txtR.Text = "" Then txtR.Text = 0
  1009.      If txtG.Text = "" Then txtG.Text = 0
  1010.      If txtB.Text = "" Then txtB.Text = 0
  1011.      Picture4.BackColor = RGB(txtR.Text, txtG.Text, txtB.Text)
  1012. Light.DrawWidth = 2
  1013. P = 0
  1014. For I = 1 To 254
  1015. P = P + 13
  1016. Light.ForeColor = RGB(I, txtG.Text, txtB.Text)
  1017. Light.Line (0, P)-(245, P)
  1018. Next I
  1019. HexColor
  1020.     End If
  1021. End Sub
  1022.