-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfrmParty.frm
194 lines (188 loc) · 5.96 KB
/
frmParty.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
VERSION 5.00
Begin VB.Form frmParty
BorderStyle = 0 'None
Caption = "Party List"
ClientHeight = 4065
ClientLeft = 0
ClientTop = 0
ClientWidth = 4800
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 4065
ScaleWidth = 4800
ShowInTaskbar = 0 'False
Begin VB.ListBox lstParty
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3255
IntegralHeight = 0 'False
ItemData = "frmParty.frx":0000
Left = 0
List = "frmParty.frx":0002
TabIndex = 0
Top = 240
Width = 4200
End
Begin VB.Image imgReSize
Height = 180
Left = 3240
MousePointer = 8 'Size NW SE
Picture = "frmParty.frx":0004
Top = 3720
Width = 180
End
Begin VB.Image Image5
Height = 135
Left = 50
Picture = "frmParty.frx":0150
Top = 60
Width = 135
End
Begin VB.Image imgclose
Height = 135
Left = 3120
Picture = "frmParty.frx":0285
Top = 60
Width = 135
End
Begin VB.Label LabParty
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Party List"
BeginProperty Font
Name = "Microsoft Sans Serif"
Size = 8.25
Charset = 222
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 240
TabIndex = 1
Top = 15
Width = 645
End
Begin VB.Image imgRightbar
Height = 255
Left = 1560
Picture = "frmParty.frx":03BA
Top = 0
Width = 180
End
Begin VB.Image imgbright
Height = 420
Left = 2400
Picture = "frmParty.frx":0624
Top = 3480
Width = 120
End
Begin VB.Image imgbmid
Height = 420
Left = 120
Picture = "frmParty.frx":0699
Stretch = -1 'True
Top = 3480
Width = 120
End
Begin VB.Image imgbleft
Height = 420
Left = 0
Picture = "frmParty.frx":06F1
Top = 3480
Width = 150
End
Begin VB.Image imgMidbar
Height = 255
Left = 170
Picture = "frmParty.frx":0770
Stretch = -1 'True
Top = 0
Width = 180
End
Begin VB.Image Image10
Height = 255
Left = 0
Picture = "frmParty.frx":0848
Top = 0
Width = 180
End
End
Attribute VB_Name = "frmParty"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
Me.height = 4500
Me.width = 4300
imgRightbar.Left = Me.width - 200
imgMidbar.width = Me.width - 350
LoadFormPos Me
lstParty.height = Me.height - 880
lstParty.width = Me.width
imgbleft.Top = lstParty.height + 200
imgbmid.Top = lstParty.height + 200
imgbright.Top = lstParty.height + 200
imgbright.Left = Me.width - 300
imgbmid.width = Me.width - 400
imgReSize.Top = lstParty.height + 320
imgReSize.Left = Me.width - 270
Me.height = lstParty.height + 880
frmMain.UpdateParty
End Sub
Private Sub Form_Resize()
If (Me.width < 2000 Or Me.height < 2000) Then
Form_Load
Else
imgRightbar.Left = Me.width - 180
imgMidbar.width = Me.width - 320
lstParty.height = Me.height - 650
lstParty.width = Me.width
imgbleft.Top = lstParty.height + 240
imgbmid.Top = lstParty.height + 240
imgclose.Left = Me.width - 200
imgbright.Top = lstParty.height + 240
imgbright.Left = Me.width - 100
imgbmid.width = Me.width - 200
imgReSize.Top = lstParty.height + 480
imgReSize.Left = Me.width - 182
If (Me.height + 650) < MDIfrmMain.height Then _
Me.height = lstParty.height + 650
End If
End Sub
Private Sub imgclose_Click()
SaveFormPos Me
Unload Me
End Sub
Private Sub imgMidbar_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call ReleaseCapture
Call SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
SaveFormPos Me
End Sub
Private Sub imgReSize_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call ReleaseCapture
Call SendMessage(hWnd, WM_NCLBUTTONDOWN, 17, 0)
SaveFormPos Me
End Sub
Private Sub lstParty_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
If lstParty.List(lstParty.ListIndex) <> "" Then
frmPopupChat.mnuKickParty.Visible = True
frmPopupChat.mnuLeaveParty.Visible = True
frmPopupChat.mnuGuilds.Visible = False
Me.PopupMenu frmPopupChat.mnuPartylist
End If
End If
End Sub