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

  1. VERSION 4.00
  2. Begin VB.Form HostPanel 
  3.    BackColor       =   &H00C0FFC0&
  4.    Caption         =   "Host Monitoring Panel"
  5.    ClientHeight    =   2985
  6.    ClientLeft      =   1095
  7.    ClientTop       =   5325
  8.    ClientWidth     =   9765
  9.    Height          =   3390
  10.    Left            =   1035
  11.    LinkTopic       =   "HostPanel"
  12.    ScaleHeight     =   2985
  13.    ScaleWidth      =   9765
  14.    Top             =   4980
  15.    Width           =   9885
  16.    Begin VB.Frame Frame1 
  17.       BackColor       =   &H00C0FFC0&
  18.       Caption         =   "Privileges of the Selected Member"
  19.       Height          =   615
  20.       Left            =   4440
  21.       TabIndex        =   22
  22.       Top             =   120
  23.       Width           =   5295
  24.       Begin VB.CommandButton cmdMakeSpectator 
  25.          Caption         =   "Make Spectator"
  26.          Height          =   255
  27.          Left            =   120
  28.          TabIndex        =   25
  29.          Top             =   240
  30.          Width           =   1695
  31.       End
  32.       Begin VB.CommandButton cmdMakeParticipant 
  33.          Caption         =   "Make Participant"
  34.          Height          =   255
  35.          Left            =   1920
  36.          TabIndex        =   24
  37.          Top             =   240
  38.          Width           =   1695
  39.       End
  40.       Begin VB.CommandButton cmdMakeHost 
  41.          Caption         =   "Make Host"
  42.          Height          =   255
  43.          Left            =   3720
  44.          TabIndex        =   23
  45.          Top             =   240
  46.          Width           =   1455
  47.       End
  48.    End
  49.    Begin VB.Frame Frame2 
  50.       BackColor       =   &H00C0FFC0&
  51.       Caption         =   "Filtering of the Selected Member"
  52.       Height          =   615
  53.       Left            =   4440
  54.       TabIndex        =   19
  55.       Top             =   840
  56.       Width           =   5295
  57.       Begin VB.CommandButton cmdIgnore 
  58.          Caption         =   "Ignore Member"
  59.          Height          =   255
  60.          Left            =   120
  61.          TabIndex        =   21
  62.          Top             =   240
  63.          Width           =   2415
  64.       End
  65.       Begin VB.CommandButton cmdDoNotIgnore 
  66.          Caption         =   "Don't Ignore Member"
  67.          Height          =   255
  68.          Left            =   2640
  69.          TabIndex        =   20
  70.          Top             =   240
  71.          Width           =   2535
  72.       End
  73.    End
  74.    Begin VB.Frame Frame3 
  75.       BackColor       =   &H00C0FFC0&
  76.       Caption         =   "Set New Room Topic"
  77.       ForeColor       =   &H00000000&
  78.       Height          =   615
  79.       Left            =   120
  80.       TabIndex        =   16
  81.       Top             =   1560
  82.       Width           =   4215
  83.       Begin VB.TextBox txtRoomTopic 
  84.          Height          =   285
  85.          Left            =   120
  86.          TabIndex        =   18
  87.          Top             =   240
  88.          Width           =   3015
  89.       End
  90.       Begin VB.CommandButton cmdSetTopic 
  91.          Caption         =   "Set Topic"
  92.          Height          =   285
  93.          Left            =   3240
  94.          TabIndex        =   17
  95.          Top             =   240
  96.          Width           =   855
  97.       End
  98.    End
  99.    Begin VB.Frame Frame4 
  100.       BackColor       =   &H00C0FFC0&
  101.       Caption         =   "Room Capacity"
  102.       Height          =   615
  103.       Left            =   4440
  104.       TabIndex        =   12
  105.       Top             =   1560
  106.       Width           =   5295
  107.       Begin VB.TextBox txtMaxMembers 
  108.          Height          =   285
  109.          Left            =   120
  110.          TabIndex        =   15
  111.          Top             =   240
  112.          Width           =   975
  113.       End
  114.       Begin VB.CommandButton cmdSetMaxMembers 
  115.          Caption         =   "Set New Capacity"
  116.          Height          =   285
  117.          Left            =   1200
  118.          TabIndex        =   14
  119.          Top             =   240
  120.          Width           =   1695
  121.       End
  122.       Begin VB.CommandButton cmdGetMaxMembers 
  123.          Caption         =   "Get Current Capacity"
  124.          Height          =   285
  125.          Left            =   3000
  126.          TabIndex        =   13
  127.          Top             =   240
  128.          Width           =   2175
  129.       End
  130.    End
  131.    Begin VB.Frame Frame5 
  132.       BackColor       =   &H00C0FFC0&
  133.       Caption         =   "Police Functions"
  134.       Height          =   615
  135.       Left            =   120
  136.       TabIndex        =   10
  137.       Top             =   2280
  138.       Width           =   4215
  139.       Begin VB.CommandButton cmdKickBan 
  140.          Caption         =   "Kick, Ban or Re-instate the Selected Member"
  141.          Height          =   255
  142.          Left            =   120
  143.          TabIndex        =   11
  144.          Top             =   240
  145.          Width           =   3975
  146.       End
  147.    End
  148.    Begin VB.Frame Frame7 
  149.       BackColor       =   &H00C0FFC0&
  150.       Caption         =   "Control UI Settings"
  151.       Height          =   615
  152.       Left            =   4440
  153.       TabIndex        =   7
  154.       Top             =   2280
  155.       Width           =   5295
  156.       Begin VB.CommandButton cmdClearHistory 
  157.          Caption         =   "Clear History"
  158.          Height          =   255
  159.          Left            =   120
  160.          TabIndex        =   9
  161.          Top             =   240
  162.          Width           =   2535
  163.       End
  164.       Begin VB.CommandButton cmdChangeControlUI 
  165.          Caption         =   "Change Control UI"
  166.          Height          =   255
  167.          Left            =   2760
  168.          TabIndex        =   8
  169.          Top             =   240
  170.          Width           =   2415
  171.       End
  172.    End
  173.    Begin VB.Frame Frame6 
  174.       BackColor       =   &H00C0FFC0&
  175.       Caption         =   "Real Name of"
  176.       Height          =   1335
  177.       Left            =   120
  178.       TabIndex        =   0
  179.       Top             =   120
  180.       Width           =   4215
  181.       Begin VB.CommandButton cmdGetRealName 
  182.          Caption         =   "Get    Real Name"
  183.          Height          =   640
  184.          Left            =   3240
  185.          TabIndex        =   4
  186.          Top             =   240
  187.          Width           =   855
  188.       End
  189.       Begin VB.OptionButton optSelection 
  190.          BackColor       =   &H00C0FFC0&
  191.          Caption         =   "the Selected Member"
  192.          Height          =   255
  193.          Left            =   120
  194.          TabIndex        =   3
  195.          Top             =   240
  196.          Value           =   -1  'True
  197.          Width           =   3015
  198.       End
  199.       Begin VB.OptionButton optAlias 
  200.          BackColor       =   &H00C0FFC0&
  201.          Caption         =   "this Alias"
  202.          Height          =   255
  203.          Left            =   120
  204.          TabIndex        =   2
  205.          Top             =   500
  206.          Width           =   1095
  207.       End
  208.       Begin VB.TextBox txtAlias 
  209.          Height          =   285
  210.          Left            =   1200
  211.          TabIndex        =   1
  212.          Top             =   480
  213.          Width           =   1935
  214.       End
  215.       Begin VB.Label lblAsyncAlias 
  216.          BackColor       =   &H00FFFFFF&
  217.          Caption         =   "Alias appears here"
  218.          BeginProperty Font 
  219.             name            =   "Arial Narrow"
  220.             charset         =   0
  221.             weight          =   400
  222.             size            =   8.25
  223.             underline       =   0   'False
  224.             italic          =   0   'False
  225.             strikethrough   =   0   'False
  226.          EndProperty
  227.          Height          =   255
  228.          Left            =   120
  229.          TabIndex        =   6
  230.          Top             =   960
  231.          Width           =   1335
  232.       End
  233.       Begin VB.Label lblAsyncRealName 
  234.          BackColor       =   &H00FFFFFF&
  235.          Caption         =   "Real name appears here"
  236.          BeginProperty Font 
  237.             name            =   "Arial Narrow"
  238.             charset         =   0
  239.             weight          =   400
  240.             size            =   8.25
  241.             underline       =   0   'False
  242.             italic          =   0   'False
  243.             strikethrough   =   0   'False
  244.          EndProperty
  245.          Height          =   255
  246.          Left            =   1560
  247.          TabIndex        =   5
  248.          Top             =   960
  249.          Width           =   2535
  250.       End
  251.    End
  252. Attribute VB_Name = "HostPanel"
  253. Attribute VB_Creatable = False
  254. Attribute VB_Exposed = False
  255. Option Explicit
  256. Sub cmdGetMaxMembers_Click()
  257.     On Error Resume Next
  258.     txtMaxMembers.Text = CStr(ExecC.MSChat.MaxMembers)
  259. End Sub
  260. Private Sub cmdChangeControlUI_Click()
  261.     UISettings.Show
  262. End Sub
  263. Private Sub cmdDoNotIgnore_Click()
  264.     On Error Resume Next
  265.     ExecC.MSChat.SetParticipantStatus -1, MASK_IGNORED, 0
  266. End Sub
  267. Private Sub cmdGetRealName_Click()
  268.     On Error GoTo errGetRealName
  269.     Dim txtReal As String
  270.     lblAsyncAlias.Caption = "Alias appears here"
  271.     lblAsyncRealName.Caption = "Real name appears here"
  272.     nRealNameType = RN_PARTICIPANT
  273.     If (optSelection.Value) Then
  274.         ExecC.MSChat.GetParticipantRealName -1, "", False, txtReal
  275.     Else
  276.         ExecC.MSChat.GetParticipantRealName 0, txtAlias.Text, False, txtReal
  277.     End If
  278.     Exit Sub
  279. errGetRealName:
  280.     DisplayError "cmdGetRealName_Click"
  281. End Sub
  282. Private Sub cmdIgnore_Click()
  283.     On Error Resume Next
  284.     ExecC.MSChat.SetParticipantStatus -1, MASK_IGNORED, STAT_IGNORED
  285. End Sub
  286. Private Sub cmdKickBan_Click()
  287.     KickBan.Show
  288. End Sub
  289. Private Sub cmdMakeHost_Click()
  290.     On Error Resume Next
  291.     ExecC.MSChat.SetParticipantStatus -1, MASK_PRIVILEGES, STAT_HOST
  292. End Sub
  293. Private Sub cmdMakeParticipant_Click()
  294.     On Error Resume Next
  295.     ExecC.MSChat.SetParticipantStatus -1, MASK_PRIVILEGES, STAT_PARTICIPANT
  296. End Sub
  297. Private Sub cmdMakeSpectator_Click()
  298.     On Error Resume Next
  299.     ExecC.MSChat.SetParticipantStatus -1, MASK_PRIVILEGES, STAT_SPECTATOR
  300. End Sub
  301. Private Sub cmdSetMaxMembers_Click()
  302.     On Error Resume Next
  303.     ExecC.MSChat.MaxMembers = CLng(txtMaxMembers.Text)
  304. End Sub
  305. Private Sub cmdSetTopic_Click()
  306.     On Error Resume Next
  307.     ExecC.MSChat.RoomTopic = txtRoomTopic.Text
  308. End Sub
  309. Private Sub optAlias_Click()
  310.     txtAlias.Enabled = True
  311. End Sub
  312. Private Sub optSelection_Click()
  313.     txtAlias.Enabled = False
  314. End Sub
  315.