home *** CD-ROM | disk | FTP | other *** search
/ Chip Special: HTML & Java / Chip-Special_1997-01_HTML-a-Java.bin / chatsdk / chatsdk.exe / CHECKER.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-12-12  |  35.4 KB  |  1,134 lines

  1. VERSION 4.00
  2. Begin VB.Form Main 
  3.    BackColor       =   &H00FFFFC0&
  4.    Caption         =   "MS Chat Monitoring Tool"
  5.    ClientHeight    =   8760
  6.    ClientLeft      =   135
  7.    ClientTop       =   1740
  8.    ClientWidth     =   11850
  9.    Height          =   9165
  10.    Left            =   75
  11.    LinkTopic       =   "Main"
  12.    ScaleHeight     =   8760
  13.    ScaleWidth      =   11850
  14.    Top             =   1395
  15.    Width           =   11970
  16.    Begin VB.Frame Frame5 
  17.       BackColor       =   &H00FFFFC0&
  18.       Caption         =   "Enter/Exit Room"
  19.       Height          =   735
  20.       Left            =   6840
  21.       TabIndex        =   30
  22.       Top             =   4560
  23.       Width           =   4935
  24.       Begin VB.CommandButton cmdExitRoom 
  25.          Caption         =   "Exit Room"
  26.          Height          =   255
  27.          Left            =   3360
  28.          TabIndex        =   2
  29.          Top             =   360
  30.          Width           =   1455
  31.       End
  32.       Begin VB.CommandButton cmdCancelEntering 
  33.          Caption         =   "Cancel Entering"
  34.          Height          =   255
  35.          Left            =   1680
  36.          TabIndex        =   1
  37.          Top             =   360
  38.          Width           =   1575
  39.       End
  40.       Begin VB.CommandButton cmdEnterRoom 
  41.          Caption         =   "Enter Room"
  42.          Default         =   -1  'True
  43.          Height          =   255
  44.          Left            =   120
  45.          TabIndex        =   0
  46.          Top             =   360
  47.          Width           =   1455
  48.       End
  49.    End
  50.    Begin VB.Frame Frame4 
  51.       BackColor       =   &H00FFFFC0&
  52.       Caption         =   "Ignore Participant"
  53.       Height          =   975
  54.       Left            =   6840
  55.       TabIndex        =   28
  56.       Top             =   3480
  57.       Width           =   4935
  58.       Begin VB.CommandButton cmdDoNotIgnore 
  59.          Caption         =   "Don't Ignore"
  60.          Height          =   255
  61.          Left            =   2520
  62.          TabIndex        =   12
  63.          Top             =   600
  64.          Width           =   2175
  65.       End
  66.       Begin VB.CommandButton cmdIgnore 
  67.          Caption         =   "Ignore"
  68.          Height          =   255
  69.          Left            =   240
  70.          TabIndex        =   11
  71.          Top             =   600
  72.          Width           =   2175
  73.       End
  74.       Begin VB.Label Label5 
  75.          BackColor       =   &H00FFFFC0&
  76.          Caption         =   "Ignore or not the selected member."
  77.          Height          =   255
  78.          Left            =   1320
  79.          TabIndex        =   29
  80.          Top             =   240
  81.          Width           =   2535
  82.       End
  83.    End
  84.    Begin VB.Frame Frame1 
  85.       BackColor       =   &H00FFFFC0&
  86.       Caption         =   "Participant Real Name"
  87.       Height          =   2295
  88.       Left            =   6840
  89.       TabIndex        =   22
  90.       Top             =   1080
  91.       Width           =   4935
  92.       Begin VB.CommandButton cmdGetRealName 
  93.          Caption         =   "Get Real Name"
  94.          Height          =   975
  95.          Left            =   4080
  96.          TabIndex        =   10
  97.          Top             =   480
  98.          Width           =   735
  99.       End
  100.       Begin VB.Frame Frame2 
  101.          BackColor       =   &H00FFFFC0&
  102.          Caption         =   "Get Real Name from"
  103.          Height          =   1095
  104.          Left            =   120
  105.          TabIndex        =   23
  106.          Top             =   360
  107.          Width           =   3735
  108.          Begin VB.TextBox txtAlias 
  109.             Enabled         =   0   'False
  110.             Height          =   285
  111.             Left            =   1320
  112.             TabIndex        =   9
  113.             Top             =   720
  114.             Width           =   2295
  115.          End
  116.          Begin VB.OptionButton optAlias 
  117.             BackColor       =   &H00FFFFC0&
  118.             Caption         =   "This Alias"
  119.             Height          =   255
  120.             Left            =   120
  121.             TabIndex        =   8
  122.             Top             =   720
  123.             Width           =   1095
  124.          End
  125.          Begin VB.OptionButton optSelection 
  126.             BackColor       =   &H00FFFFC0&
  127.             Caption         =   "Selected member"
  128.             Height          =   255
  129.             Left            =   120
  130.             TabIndex        =   7
  131.             Top             =   360
  132.             Value           =   -1  'True
  133.             Width           =   1815
  134.          End
  135.       End
  136.       Begin VB.Label lblAsyncRealName 
  137.          Height          =   255
  138.          Left            =   1680
  139.          TabIndex        =   27
  140.          Top             =   1920
  141.          Width           =   3135
  142.       End
  143.       Begin VB.Label lblAsyncAlias 
  144.          Height          =   255
  145.          Left            =   120
  146.          TabIndex        =   26
  147.          Top             =   1920
  148.          Width           =   1335
  149.       End
  150.       Begin VB.Label Label2 
  151.          BackColor       =   &H00FFFFC0&
  152.          Caption         =   "Real Name:"
  153.          Height          =   255
  154.          Left            =   1680
  155.          TabIndex        =   25
  156.          Top             =   1680
  157.          Width           =   1215
  158.       End
  159.       Begin VB.Label Label1 
  160.          BackColor       =   &H00FFFFC0&
  161.          Caption         =   "Alias:"
  162.          Height          =   255
  163.          Left            =   120
  164.          TabIndex        =   24
  165.          Top             =   1680
  166.          Width           =   735
  167.       End
  168.    End
  169.    Begin VB.CommandButton cmdWhisperNoWhisper 
  170.       Caption         =   "No/Whisper"
  171.       Height          =   255
  172.       Left            =   6840
  173.       TabIndex        =   3
  174.       Top             =   5400
  175.       Width           =   1455
  176.    End
  177.    Begin VB.CommandButton cmdSetTopic 
  178.       Caption         =   "Set Topic"
  179.       Height          =   255
  180.       Left            =   4800
  181.       TabIndex        =   6
  182.       Top             =   960
  183.       Width           =   1455
  184.    End
  185.    Begin VB.TextBox txtTopic 
  186.       Height          =   285
  187.       Left            =   1680
  188.       TabIndex        =   5
  189.       Top             =   960
  190.       Width           =   3015
  191.    End
  192.    Begin VB.CommandButton cmdClearHistory 
  193.       Caption         =   "Clear History"
  194.       Height          =   255
  195.       Left            =   8640
  196.       TabIndex        =   4
  197.       Top             =   5400
  198.       Width           =   1335
  199.    End
  200.    Begin VB.CommandButton cmdExit 
  201.       Caption         =   "Exit"
  202.       Height          =   255
  203.       Left            =   10320
  204.       TabIndex        =   13
  205.       Top             =   5400
  206.       Width           =   1455
  207.    End
  208.    Begin MSChatObjectsCtl.MSChat MSChat1 
  209.       Height          =   2775
  210.       Left            =   120
  211.       TabIndex        =   70
  212.       Top             =   5880
  213.       Width           =   11655
  214.       _ExtentX        =   20558
  215.       _ExtentY        =   4895
  216.       Appearance      =   0
  217.       BorderStyle     =   0
  218.       UIOption        =   3839
  219.       BackColor       =   192
  220.    End
  221.    Begin VB.Label lblState 
  222.       Alignment       =   2  'Center
  223.       BackColor       =   &H000000C0&
  224.       Caption         =   "Disconnected"
  225.       Height          =   255
  226.       Left            =   10680
  227.       TabIndex        =   69
  228.       Top             =   360
  229.       Width           =   1095
  230.    End
  231.    Begin VB.Label lblYourTurn 
  232.       Alignment       =   2  'Center
  233.       BackColor       =   &H00C0FFFF&
  234.       Caption         =   "Up to you!"
  235.       Height          =   255
  236.       Left            =   9000
  237.       TabIndex        =   68
  238.       Top             =   360
  239.       Width           =   1335
  240.    End
  241.    Begin VB.Label Label12 
  242.       BackColor       =   &H00FFFFC0&
  243.       Caption         =   "Your turn to play?"
  244.       Height          =   255
  245.       Left            =   9000
  246.       TabIndex        =   67
  247.       Top             =   120
  248.       Width           =   1335
  249.    End
  250.    Begin VB.Label Label11 
  251.       BackStyle       =   0  'Transparent
  252.       Height          =   525
  253.       Index           =   31
  254.       Left            =   3370
  255.       TabIndex        =   66
  256.       Top             =   5240
  257.       Width           =   525
  258.    End
  259.    Begin VB.Label Label11 
  260.       BackStyle       =   0  'Transparent
  261.       Height          =   525
  262.       Index           =   30
  263.       Left            =   2290
  264.       TabIndex        =   65
  265.       Top             =   5240
  266.       Width           =   525
  267.    End
  268.    Begin VB.Label Label11 
  269.       BackStyle       =   0  'Transparent
  270.       Height          =   525
  271.       Index           =   29
  272.       Left            =   1210
  273.       TabIndex        =   64
  274.       Top             =   5240
  275.       Width           =   525
  276.    End
  277.    Begin VB.Label Label11 
  278.       BackStyle       =   0  'Transparent
  279.       Height          =   525
  280.       Index           =   28
  281.       Left            =   140
  282.       TabIndex        =   63
  283.       Top             =   5240
  284.       Width           =   525
  285.    End
  286.    Begin VB.Label Label11 
  287.       BackStyle       =   0  'Transparent
  288.       Height          =   525
  289.       Index           =   27
  290.       Left            =   3910
  291.       TabIndex        =   62
  292.       Top             =   4690
  293.       Width           =   525
  294.    End
  295.    Begin VB.Label Label11 
  296.       BackStyle       =   0  'Transparent
  297.       Height          =   525
  298.       Index           =   26
  299.       Left            =   2840
  300.       TabIndex        =   61
  301.       Top             =   4690
  302.       Width           =   525
  303.    End
  304.    Begin VB.Label Label11 
  305.       BackStyle       =   0  'Transparent
  306.       Height          =   525
  307.       Index           =   25
  308.       Left            =   1760
  309.       TabIndex        =   60
  310.       Top             =   4690
  311.       Width           =   525
  312.    End
  313.    Begin VB.Label Label11 
  314.       BackStyle       =   0  'Transparent
  315.       Height          =   525
  316.       Index           =   24
  317.       Left            =   680
  318.       TabIndex        =   59
  319.       Top             =   4690
  320.       Width           =   525
  321.    End
  322.    Begin VB.Label Label11 
  323.       BackStyle       =   0  'Transparent
  324.       Height          =   525
  325.       Index           =   23
  326.       Left            =   3370
  327.       TabIndex        =   58
  328.       Top             =   4160
  329.       Width           =   525
  330.    End
  331.    Begin VB.Label Label11 
  332.       BackStyle       =   0  'Transparent
  333.       Height          =   525
  334.       Index           =   22
  335.       Left            =   2290
  336.       TabIndex        =   57
  337.       Top             =   4160
  338.       Width           =   525
  339.    End
  340.    Begin VB.Label Label11 
  341.       BackStyle       =   0  'Transparent
  342.       Height          =   525
  343.       Index           =   21
  344.       Left            =   1210
  345.       TabIndex        =   56
  346.       Top             =   4160
  347.       Width           =   525
  348.    End
  349.    Begin VB.Label Label11 
  350.       BackStyle       =   0  'Transparent
  351.       Height          =   525
  352.       Index           =   20
  353.       Left            =   140
  354.       TabIndex        =   55
  355.       Top             =   4160
  356.       Width           =   525
  357.    End
  358.    Begin VB.Label Label11 
  359.       BackStyle       =   0  'Transparent
  360.       Height          =   525
  361.       Index           =   19
  362.       Left            =   3910
  363.       TabIndex        =   54
  364.       Top             =   3610
  365.       Width           =   525
  366.    End
  367.    Begin VB.Label Label11 
  368.       BackStyle       =   0  'Transparent
  369.       Height          =   525
  370.       Index           =   18
  371.       Left            =   2840
  372.       TabIndex        =   53
  373.       Top             =   3610
  374.       Width           =   525
  375.    End
  376.    Begin VB.Label Label11 
  377.       BackStyle       =   0  'Transparent
  378.       Height          =   525
  379.       Index           =   17
  380.       Left            =   1760
  381.       TabIndex        =   52
  382.       Top             =   3610
  383.       Width           =   525
  384.    End
  385.    Begin VB.Label Label11 
  386.       BackStyle       =   0  'Transparent
  387.       Height          =   525
  388.       Index           =   16
  389.       Left            =   675
  390.       TabIndex        =   51
  391.       Top             =   3610
  392.       Width           =   525
  393.    End
  394.    Begin VB.Label Label11 
  395.       BackStyle       =   0  'Transparent
  396.       Height          =   525
  397.       Index           =   15
  398.       Left            =   3370
  399.       TabIndex        =   50
  400.       Top             =   3070
  401.       Width           =   525
  402.    End
  403.    Begin VB.Label Label11 
  404.       BackStyle       =   0  'Transparent
  405.       Height          =   525
  406.       Index           =   14
  407.       Left            =   2290
  408.       TabIndex        =   49
  409.       Top             =   3070
  410.       Width           =   525
  411.    End
  412.    Begin VB.Label Label11 
  413.       BackStyle       =   0  'Transparent
  414.       Height          =   525
  415.       Index           =   13
  416.       Left            =   1210
  417.       TabIndex        =   48
  418.       Top             =   3070
  419.       Width           =   525
  420.    End
  421.    Begin VB.Label Label11 
  422.       BackStyle       =   0  'Transparent
  423.       Height          =   525
  424.       Index           =   12
  425.       Left            =   140
  426.       TabIndex        =   47
  427.       Top             =   3070
  428.       Width           =   525
  429.    End
  430.    Begin VB.Label Label11 
  431.       BackStyle       =   0  'Transparent
  432.       Height          =   525
  433.       Index           =   11
  434.       Left            =   3910
  435.       TabIndex        =   46
  436.       Top             =   2540
  437.       Width           =   525
  438.    End
  439.    Begin VB.Label Label11 
  440.       BackStyle       =   0  'Transparent
  441.       Height          =   525
  442.       Index           =   10
  443.       Left            =   2840
  444.       TabIndex        =   45
  445.       Top             =   2540
  446.       Width           =   525
  447.    End
  448.    Begin VB.Label Label11 
  449.       BackStyle       =   0  'Transparent
  450.       Height          =   525
  451.       Index           =   9
  452.       Left            =   1760
  453.       TabIndex        =   44
  454.       Top             =   2540
  455.       Width           =   525
  456.    End
  457.    Begin VB.Label Label11 
  458.       BackStyle       =   0  'Transparent
  459.       Height          =   525
  460.       Index           =   8
  461.       Left            =   675
  462.       TabIndex        =   43
  463.       Top             =   2540
  464.       Width           =   525
  465.    End
  466.    Begin VB.Label Label11 
  467.       BackStyle       =   0  'Transparent
  468.       Height          =   525
  469.       Index           =   7
  470.       Left            =   3370
  471.       TabIndex        =   42
  472.       Top             =   2000
  473.       Width           =   525
  474.    End
  475.    Begin VB.Label Label11 
  476.       BackStyle       =   0  'Transparent
  477.       Height          =   525
  478.       Index           =   6
  479.       Left            =   2290
  480.       TabIndex        =   41
  481.       Top             =   2000
  482.       Width           =   525
  483.    End
  484.    Begin VB.Label Label11 
  485.       BackStyle       =   0  'Transparent
  486.       Height          =   525
  487.       Index           =   5
  488.       Left            =   1210
  489.       TabIndex        =   40
  490.       Top             =   2000
  491.       Width           =   525
  492.    End
  493.    Begin VB.Label Label11 
  494.       BackStyle       =   0  'Transparent
  495.       Height          =   525
  496.       Index           =   4
  497.       Left            =   140
  498.       TabIndex        =   39
  499.       Top             =   2000
  500.       Width           =   525
  501.    End
  502.    Begin VB.Label Label11 
  503.       BackStyle       =   0  'Transparent
  504.       Height          =   525
  505.       Index           =   3
  506.       Left            =   3910
  507.       TabIndex        =   38
  508.       Top             =   1460
  509.       Width           =   525
  510.    End
  511.    Begin VB.Label Label11 
  512.       BackStyle       =   0  'Transparent
  513.       Height          =   525
  514.       Index           =   2
  515.       Left            =   2840
  516.       TabIndex        =   37
  517.       Top             =   1460
  518.       Width           =   525
  519.    End
  520.    Begin VB.Label Label11 
  521.       BackStyle       =   0  'Transparent
  522.       Height          =   525
  523.       Index           =   1
  524.       Left            =   1760
  525.       TabIndex        =   36
  526.       Top             =   1460
  527.       Width           =   525
  528.    End
  529.    Begin VB.Label Label11 
  530.       BackStyle       =   0  'Transparent
  531.       Height          =   530
  532.       Index           =   0
  533.       Left            =   680
  534.       TabIndex        =   35
  535.       Top             =   1460
  536.       Width           =   530
  537.    End
  538.    Begin VB.Label Label9 
  539.       BackStyle       =   0  'Transparent
  540.       Height          =   615
  541.       Left            =   4440
  542.       TabIndex        =   34
  543.       Top             =   3600
  544.       Width           =   2175
  545.    End
  546.    Begin VB.Label Label6 
  547.       BackStyle       =   0  'Transparent
  548.       Height          =   615
  549.       Left            =   4440
  550.       TabIndex        =   33
  551.       Top             =   1440
  552.       Width           =   2175
  553.    End
  554.    Begin VB.Label Label4 
  555.       Alignment       =   2  'Center
  556.       BackColor       =   &H00FFFFFF&
  557.       Caption         =   "Dead White Checkers"
  558.       Height          =   255
  559.       Left            =   4560
  560.       TabIndex        =   32
  561.       Top             =   3840
  562.       Width           =   1935
  563.    End
  564.    Begin VB.Label Label3 
  565.       Alignment       =   2  'Center
  566.       BackColor       =   &H00000000&
  567.       Caption         =   "Dead Black Checkers"
  568.       ForeColor       =   &H00FFFFFF&
  569.       Height          =   255
  570.       Left            =   4560
  571.       TabIndex        =   31
  572.       Top             =   1680
  573.       Width           =   1935
  574.    End
  575.    Begin VB.Image imgWhite 
  576.       DragMode        =   1  'Automatic
  577.       Height          =   330
  578.       Index           =   11
  579.       Left            =   4080
  580.       Picture         =   "checker.frx":0000
  581.       Tag             =   "1"
  582.       Top             =   4200
  583.       Width           =   330
  584.    End
  585.    Begin VB.Image imgWhite 
  586.       DragMode        =   1  'Automatic
  587.       Height          =   330
  588.       Index           =   10
  589.       Left            =   3000
  590.       Picture         =   "checker.frx":061A
  591.       Tag             =   "1"
  592.       Top             =   4200
  593.       Width           =   330
  594.    End
  595.    Begin VB.Image imgWhite 
  596.       DragMode        =   1  'Automatic
  597.       Height          =   330
  598.       Index           =   9
  599.       Left            =   1920
  600.       Picture         =   "checker.frx":0C34
  601.       Tag             =   "1"
  602.       Top             =   4200
  603.       Width           =   330
  604.    End
  605.    Begin VB.Image imgWhite 
  606.       DragMode        =   1  'Automatic
  607.       Height          =   330
  608.       Index           =   8
  609.       Left            =   840
  610.       Picture         =   "checker.frx":124E
  611.       Tag             =   "1"
  612.       Top             =   4200
  613.       Width           =   330
  614.    End
  615.    Begin VB.Image imgWhite 
  616.       DragMode        =   1  'Automatic
  617.       Height          =   330
  618.       Index           =   7
  619.       Left            =   3480
  620.       Picture         =   "checker.frx":1868
  621.       Tag             =   "1"
  622.       Top             =   4800
  623.       Width           =   330
  624.    End
  625.    Begin VB.Image imgWhite 
  626.       DragMode        =   1  'Automatic
  627.       Height          =   330
  628.       Index           =   6
  629.       Left            =   2400
  630.       Picture         =   "checker.frx":1E82
  631.       Tag             =   "1"
  632.       Top             =   4800
  633.       Width           =   330
  634.    End
  635.    Begin VB.Image imgWhite 
  636.       DragMode        =   1  'Automatic
  637.       Height          =   330
  638.       Index           =   5
  639.       Left            =   1320
  640.       Picture         =   "checker.frx":249C
  641.       Tag             =   "1"
  642.       Top             =   4800
  643.       Width           =   330
  644.    End
  645.    Begin VB.Image imgWhite 
  646.       DragMode        =   1  'Automatic
  647.       Height          =   330
  648.       Index           =   4
  649.       Left            =   240
  650.       Picture         =   "checker.frx":2AB6
  651.       Tag             =   "1"
  652.       Top             =   4800
  653.       Width           =   330
  654.    End
  655.    Begin VB.Image imgWhite 
  656.       DragMode        =   1  'Automatic
  657.       Height          =   330
  658.       Index           =   3
  659.       Left            =   4080
  660.       Picture         =   "checker.frx":30D0
  661.       Tag             =   "1"
  662.       Top             =   5280
  663.       Width           =   330
  664.    End
  665.    Begin VB.Image imgWhite 
  666.       DragMode        =   1  'Automatic
  667.       Height          =   330
  668.       Index           =   2
  669.       Left            =   3000
  670.       Picture         =   "checker.frx":36EA
  671.       Tag             =   "1"
  672.       Top             =   5280
  673.       Width           =   330
  674.    End
  675.    Begin VB.Image imgWhite 
  676.       DragMode        =   1  'Automatic
  677.       Height          =   330
  678.       Index           =   1
  679.       Left            =   1920
  680.       Picture         =   "checker.frx":3D04
  681.       Tag             =   "1"
  682.       Top             =   5280
  683.       Width           =   330
  684.    End
  685.    Begin VB.Image imgBlack 
  686.       DragMode        =   1  'Automatic
  687.       Height          =   330
  688.       Index           =   11
  689.       Left            =   3480
  690.       Picture         =   "checker.frx":431E
  691.       Tag             =   "0"
  692.       Top             =   2640
  693.       Width           =   330
  694.    End
  695.    Begin VB.Image imgBlack 
  696.       DragMode        =   1  'Automatic
  697.       Height          =   330
  698.       Index           =   10
  699.       Left            =   2400
  700.       Picture         =   "checker.frx":4938
  701.       Tag             =   "0"
  702.       Top             =   2640
  703.       Width           =   330
  704.    End
  705.    Begin VB.Image imgBlack 
  706.       DragMode        =   1  'Automatic
  707.       Height          =   330
  708.       Index           =   9
  709.       Left            =   1320
  710.       Picture         =   "checker.frx":4F52
  711.       Tag             =   "0"
  712.       Top             =   2640
  713.       Width           =   330
  714.    End
  715.    Begin VB.Image imgBlack 
  716.       DragMode        =   1  'Automatic
  717.       Height          =   330
  718.       Index           =   8
  719.       Left            =   240
  720.       Picture         =   "checker.frx":556C
  721.       Tag             =   "0"
  722.       Top             =   2640
  723.       Width           =   330
  724.    End
  725.    Begin VB.Image imgBlack 
  726.       DragMode        =   1  'Automatic
  727.       Height          =   330
  728.       Index           =   7
  729.       Left            =   3960
  730.       Picture         =   "checker.frx":5B86
  731.       Tag             =   "0"
  732.       Top             =   2160
  733.       Width           =   330
  734.    End
  735.    Begin VB.Image imgBlack 
  736.       DragMode        =   1  'Automatic
  737.       Height          =   330
  738.       Index           =   6
  739.       Left            =   2880
  740.       Picture         =   "checker.frx":61A0
  741.       Tag             =   "0"
  742.       Top             =   2160
  743.       Width           =   330
  744.    End
  745.    Begin VB.Image imgBlack 
  746.       DragMode        =   1  'Automatic
  747.       Height          =   330
  748.       Index           =   5
  749.       Left            =   1920
  750.       Picture         =   "checker.frx":67BA
  751.       Tag             =   "0"
  752.       Top             =   2160
  753.       Width           =   330
  754.    End
  755.    Begin VB.Image imgBlack 
  756.       DragMode        =   1  'Automatic
  757.       Height          =   330
  758.       Index           =   4
  759.       Left            =   720
  760.       Picture         =   "checker.frx":6DD4
  761.       Tag             =   "0"
  762.       Top             =   2040
  763.       Width           =   330
  764.    End
  765.    Begin VB.Image imgBlack 
  766.       DragMode        =   1  'Automatic
  767.       Height          =   330
  768.       Index           =   3
  769.       Left            =   3480
  770.       Picture         =   "checker.frx":73EE
  771.       Tag             =   "0"
  772.       Top             =   1560
  773.       Width           =   330
  774.    End
  775.    Begin VB.Image imgBlack 
  776.       DragMode        =   1  'Automatic
  777.       Height          =   330
  778.       Index           =   2
  779.       Left            =   2400
  780.       Picture         =   "checker.frx":7A08
  781.       Tag             =   "0"
  782.       Top             =   1560
  783.       Width           =   330
  784.    End
  785.    Begin VB.Image imgBlack 
  786.       DragMode        =   1  'Automatic
  787.       Height          =   330
  788.       Index           =   1
  789.       Left            =   1320
  790.       Picture         =   "checker.frx":8022
  791.       Tag             =   "0"
  792.       Top             =   1560
  793.       Width           =   330
  794.    End
  795.    Begin VB.Image imgWhite 
  796.       DragMode        =   1  'Automatic
  797.       Height          =   330
  798.       Index           =   0
  799.       Left            =   840
  800.       Picture         =   "checker.frx":863C
  801.       Tag             =   "1"
  802.       Top             =   5280
  803.       Width           =   330
  804.    End
  805.    Begin VB.Image imgBlack 
  806.       DragMode        =   1  'Automatic
  807.       Height          =   330
  808.       Index           =   0
  809.       Left            =   240
  810.       Picture         =   "checker.frx":8C56
  811.       Tag             =   "0"
  812.       Top             =   1560
  813.       Width           =   330
  814.    End
  815.    Begin VB.Image imgBackGround 
  816.       Height          =   4335
  817.       Left            =   120
  818.       Picture         =   "checker.frx":9270
  819.       Top             =   1440
  820.       Width           =   6465
  821.    End
  822.    Begin VB.Label lblRoomPath 
  823.       Height          =   255
  824.       Left            =   4080
  825.       TabIndex        =   21
  826.       Top             =   360
  827.       Width           =   4575
  828.    End
  829.    Begin VB.Label lblUserName 
  830.       Height          =   255
  831.       Left            =   2160
  832.       TabIndex        =   20
  833.       Top             =   360
  834.       Width           =   1695
  835.    End
  836.    Begin VB.Label lblAlias 
  837.       Height          =   255
  838.       Left            =   120
  839.       TabIndex        =   19
  840.       Top             =   360
  841.       Width           =   1815
  842.    End
  843.    Begin VB.Label Label18 
  844.       BackColor       =   &H00FFFFC0&
  845.       Caption         =   "State"
  846.       Height          =   255
  847.       Left            =   10680
  848.       TabIndex        =   18
  849.       Top             =   120
  850.       Width           =   615
  851.    End
  852.    Begin VB.Label Label13 
  853.       Alignment       =   1  'Right Justify
  854.       BackColor       =   &H00FFFFC0&
  855.       Caption         =   "Chat Room Topic"
  856.       Height          =   255
  857.       Left            =   120
  858.       TabIndex        =   17
  859.       Top             =   960
  860.       Width           =   1335
  861.    End
  862.    Begin VB.Label Label10 
  863.       BackColor       =   &H00FFFFC0&
  864.       Caption         =   "Name"
  865.       Height          =   255
  866.       Left            =   2160
  867.       TabIndex        =   16
  868.       Top             =   120
  869.       Width           =   1815
  870.    End
  871.    Begin VB.Label Label8 
  872.       BackColor       =   &H00FFFFC0&
  873.       Caption         =   "Room Path"
  874.       Height          =   255
  875.       Left            =   4080
  876.       TabIndex        =   15
  877.       Top             =   120
  878.       Width           =   4575
  879.    End
  880.    Begin VB.Label Label7 
  881.       BackColor       =   &H00FFFFC0&
  882.       Caption         =   "Alias "
  883.       Height          =   255
  884.       Left            =   120
  885.       TabIndex        =   14
  886.       Top             =   120
  887.       Width           =   1815
  888.    End
  889. Attribute VB_Name = "Main"
  890. Attribute VB_Creatable = False
  891. Attribute VB_Exposed = False
  892. Option Explicit
  893. Const MASK_NOWHISPER = 2
  894. Const MASK_IGNORED = 4
  895. Const STAT_NOWHISPER = 8
  896. Const STAT_IGNORED = 16
  897. Const CAP_NOWHISPER = "Deny Whispers"
  898. Const CAP_WHISPER = "Accept Whispers"
  899. Const CAP_YOURTURN = "Yes"
  900. Const CAP_NOTYOURTURN = "No"
  901. Const COLUMNS = 8
  902. Const ROWS = 8
  903. Const CHK_PER_ROW = COLUMNS / 2
  904. Const ROW_PER_TEAM = 3
  905. Const TYPE_MOVE = 0
  906. Const TYPE_ASKFORPOS = 1
  907. Const TYPE_GIVEPOS = 2
  908. Dim nDeadBlack As Integer
  909. Dim nDeadWhite As Integer
  910. Dim fGotPositions As Boolean
  911. Dim lgParticipantID1 As Long
  912. Dim lgParticipantID2 As Long
  913. Sub BroadcastMove(Tag As Integer, Index As Integer, Left As Integer, Top As Integer)
  914.     On Error Resume Next
  915.     If (MSChat1.State = 3) Then
  916.         Dim rgInt(0 To 4) As Integer
  917.         Dim vMess As Variant
  918.         
  919.         rgInt(0) = TYPE_MOVE
  920.         rgInt(1) = Tag
  921.         rgInt(2) = Index
  922.         rgInt(3) = Left
  923.         rgInt(4) = Top
  924.         
  925.         MSChat1.SendMessage -1, 0, rgInt
  926.         
  927.         lblYourTurn.Caption = CAP_NOTYOURTURN
  928.         lblYourTurn.BackColor = &HC0&
  929.     End If
  930. End Sub
  931. Sub InitializeChkPositions()
  932.     Dim X, Y As Integer
  933.     For Y = 0 To ROW_PER_TEAM - 1
  934.         For X = 0 To CHK_PER_ROW - 1
  935.             imgBlack(Y * CHK_PER_ROW + X).Left = imgBackGround.Left + 120 + X * 1080 + (Y Mod 2) * 540
  936.             imgBlack(Y * CHK_PER_ROW + X).Top = imgBackGround.Top + 120 + Y * 540
  937.         Next X
  938.     Next Y
  939.     For Y = 0 To ROW_PER_TEAM - 1
  940.         For X = 0 To CHK_PER_ROW - 1
  941.             imgWhite(Y * CHK_PER_ROW + X).Left = imgBackGround.Left + 120 + (X + 1) * 1080 - ((Y Mod 2) + 1) * 540
  942.             imgWhite(Y * CHK_PER_ROW + X).Top = imgBackGround.Top + imgBackGround.Height - 120 - Y * 540 - imgWhite(0).Height
  943.         Next X
  944.     Next Y
  945. End Sub
  946. Sub SendPositions(ParticipantID As Long)
  947.     On Error Resume Next
  948.     If (MSChat1.State = 3) Then
  949.         Dim rgInt(0 To CHK_PER_ROW * ROW_PER_TEAM * 4) As Integer
  950.         Dim X As Integer
  951.         
  952.         rgInt(0) = TYPE_GIVEPOS
  953.         
  954.         For X = 0 To CHK_PER_ROW * ROW_PER_TEAM - 1
  955.             rgInt(2 * X + 1) = imgBlack(X).Left
  956.             rgInt(2 * (X + 1)) = imgBlack(X).Top
  957.         Next X
  958.         
  959.         For X = 0 To CHK_PER_ROW * ROW_PER_TEAM - 1
  960.             rgInt(2 * X + 1 + CHK_PER_ROW * ROW_PER_TEAM * 2) = imgWhite(X).Left
  961.             rgInt(2 * (X + 1) + CHK_PER_ROW * ROW_PER_TEAM * 2) = imgWhite(X).Top
  962.         Next X
  963.         
  964.         MSChat1.SendMessage ParticipantID, 1, rgInt
  965.     End If
  966. End Sub
  967. Sub SetState(NewState As Integer)
  968.     Select Case NewState
  969.     Case 1:
  970.         cmdEnterRoom.Enabled = True
  971.         cmdCancelEntering.Enabled = False
  972.         cmdExitRoom.Enabled = False
  973.         lblState.Caption = "Disconnected"
  974.         lblState.BackColor = &HC0&
  975.         MSChat1.BackColor = &HC0&
  976.     Case 2:
  977.         cmdEnterRoom.Enabled = False
  978.         cmdCancelEntering.Enabled = True
  979.         cmdExitRoom.Enabled = False
  980.         lblState.Caption = "Connecting..."
  981.         lblState.BackColor = &H80FF&
  982.         MSChat1.BackColor = &H80FF&
  983.     Case 3:
  984.         cmdEnterRoom.Enabled = False
  985.         cmdCancelEntering.Enabled = False
  986.         cmdExitRoom.Enabled = True
  987.         lblState.Caption = "Connected"
  988.         lblState.BackColor = &HC000&
  989.         MSChat1.BackColor = &HC000&
  990.     End Select
  991. End Sub
  992. Private Sub cmdGetRealName_Click()
  993.     On Error Resume Next
  994.     Dim txtReal As String
  995.     lblAsyncAlias.Caption = ""
  996.     lblAsyncRealName.Caption = ""
  997.     If (optSelection.Value) Then
  998.         MSChat1.GetParticipantRealName -1, "", False, txtReal
  999.     Else
  1000.         MSChat1.GetParticipantRealName 0, txtAlias.Text, False, txtReal
  1001.     End If
  1002. End Sub
  1003. Private Sub Form_Unload(Cancel As Integer)
  1004.     Unload EnterOptions
  1005. End Sub
  1006. Private Sub imgBackGround_DragDrop(Source As Control, X As Single, Y As Single)
  1007.     Source.Left = (Int(X / 540) + 0.5) * 540 + imgBackGround.Left - Source.Width / 2
  1008.     Source.Top = (Int(Y / 540) + 0.5) * 540 + imgBackGround.Top - Source.Height / 2
  1009.     BroadcastMove Source.Tag, Source.Index, Source.Left, Source.Top
  1010. End Sub
  1011. Private Sub MSChat1_OnBeginEnumeration()
  1012.     lgParticipantID1 = 0
  1013.     lgParticipantID2 = 0
  1014.     fGotPositions = False
  1015. End Sub
  1016. Private Sub MSChat1_OnEnterParticipant(ByVal ParticipantID As Long, ByVal Alias As String, ByVal Status As Integer)
  1017.     If (Not fGotPositions) Then
  1018.         lgParticipantID1 = lgParticipantID2
  1019.         lgParticipantID2 = ParticipantID
  1020.     End If
  1021. End Sub
  1022. Private Sub MSChat1_OnParticipantRealName(ByVal Alias As String, ByVal RealName As String)
  1023.     On Error Resume Next
  1024.     lblAsyncAlias.Caption = Alias
  1025.     lblAsyncRealName.Caption = RealName
  1026. End Sub
  1027. Private Sub MSChat1_OnRoomTopicChanged(ByVal NewRoomTopic As String)
  1028.     On Error Resume Next
  1029.     txtTopic.Text = NewRoomTopic
  1030. End Sub
  1031. Private Sub MSChat1_OnStateChanged(ByVal NewState As Integer)
  1032.     SetState NewState
  1033. End Sub
  1034. Private Sub cmdCancelEntering_Click()
  1035.     On Error Resume Next
  1036.     MSChat1.CancelEntering
  1037. End Sub
  1038. Private Sub cmdClearHistory_Click()
  1039.     On Error Resume Next
  1040.     MSChat1.ClearHistory
  1041. End Sub
  1042. Private Sub cmdDoNotIgnore_Click()
  1043.     On Error Resume Next
  1044.     MSChat1.SetParticipantStatus -1, MASK_IGNORED, 0
  1045. End Sub
  1046. Private Sub cmdEnterRoom_Click()
  1047.     EnterOptions.Show
  1048. End Sub
  1049. Private Sub cmdExit_Click()
  1050.     End
  1051. End Sub
  1052. Private Sub cmdExitRoom_Click()
  1053.     On Error Resume Next
  1054.     MSChat1.ExitRoom
  1055. End Sub
  1056. Private Sub cmdIgnore_Click()
  1057.     On Error Resume Next
  1058.     MSChat1.SetParticipantStatus -1, MASK_IGNORED, STAT_IGNORED
  1059. End Sub
  1060. Private Sub cmdSetTopic_Click()
  1061.     On Error Resume Next
  1062.     MSChat1.RoomTopic = txtTopic.Text
  1063. End Sub
  1064. Private Sub cmdWhisperNoWhisper_Click()
  1065.     On Error Resume Next
  1066.     If (cmdWhisperNoWhisper.Caption = CAP_NOWHISPER) Then
  1067.         MSChat1.SetParticipantStatus MSChat1.ThisParticipantID, MASK_NOWHISPER, STAT_NOWHISPER
  1068.         cmdWhisperNoWhisper.Caption = CAP_WHISPER
  1069.     Else
  1070.         MSChat1.SetParticipantStatus MSChat1.ThisParticipantID, MASK_NOWHISPER, 0
  1071.         cmdWhisperNoWhisper.Caption = CAP_NOWHISPER
  1072.     End If
  1073. End Sub
  1074. Private Sub Form_Load()
  1075.     cmdWhisperNoWhisper.Caption = CAP_NOWHISPER
  1076.     InitializeChkPositions
  1077.     nDeadBlack = 0
  1078.     nDeadWhite = 0
  1079. End Sub
  1080. Private Sub MSChat1_OnEndEnumeration()
  1081.     On Error Resume Next
  1082.     txtTopic.Text = MSChat1.RoomTopic
  1083.     lblUserName.Caption = MSChat1.ThisParticipantName
  1084.     lblRoomPath.Caption = MSChat1.RoomPath
  1085.     fGotPositions = True
  1086.     If (MSChat1.MemberCount > 1) Then
  1087.         If (lgParticipantID1 <> MSChat1.ThisParticipantID) Then
  1088.             MSChat1.SendMessage lgParticipantID1, 1, TYPE_ASKFORPOS
  1089.         Else
  1090.             MSChat1.SendMessage lgParticipantID2, 1, TYPE_ASKFORPOS
  1091.         End If
  1092.     End If
  1093. End Sub
  1094. Private Sub MSChat1_OnMessage(ByVal SenderID As Long, ByVal Message As Variant, ByVal MessageType As Integer)
  1095.     On Error Resume Next
  1096.     If (VarType(Message) = vbInteger + vbArray) Then
  1097.         Select Case Message(0)
  1098.             Case TYPE_MOVE:
  1099.                 If (Message(1) = 0) Then  'black checker was moved
  1100.                     imgBlack(Message(2)).Left = Message(3)
  1101.                     imgBlack(Message(2)).Top = Message(4)
  1102.                 Else                      'white checker was moved
  1103.                     imgWhite(Message(2)).Left = Message(3)
  1104.                     imgWhite(Message(2)).Top = Message(4)
  1105.                 End If
  1106.                 lblYourTurn.Caption = CAP_YOURTURN
  1107.                 lblYourTurn.BackColor = &HC000&
  1108.             Case TYPE_GIVEPOS:
  1109.                 Dim X As Integer
  1110.                 
  1111.                 For X = 0 To CHK_PER_ROW * ROW_PER_TEAM - 1
  1112.                     imgBlack(X).Left = Message(X * 2 + 1)
  1113.                     imgBlack(X).Top = Message((X + 1) * 2)
  1114.                 Next X
  1115.                 For X = 0 To CHK_PER_ROW * ROW_PER_TEAM - 1
  1116.                     imgWhite(X).Left = Message(X * 2 + 1 + CHK_PER_ROW * ROW_PER_TEAM * 2)
  1117.                     imgWhite(X).Top = Message((X + 1) * 2 + CHK_PER_ROW * ROW_PER_TEAM * 2)
  1118.                 Next X
  1119.         End Select
  1120.     End If
  1121.     If (VarType(Message) = vbInteger) Then
  1122.         Select Case Message
  1123.             Case TYPE_ASKFORPOS:
  1124.                 SendPositions SenderID
  1125.             End Select
  1126.     End If
  1127. End Sub
  1128. Private Sub optAlias_Click()
  1129.     txtAlias.Enabled = True
  1130. End Sub
  1131. Private Sub optSelection_Click()
  1132.     txtAlias.Enabled = False
  1133. End Sub
  1134.