forked from dmcoles/ReBuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listManagerForm.e
484 lines (404 loc) · 16 KB
/
listManagerForm.e
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
OPT MODULE, OSVERSION=37
MODULE 'reaction/reaction_macros',
'window','classes/window',
'gadgets/layout','layout',
'reaction/reaction_lib',
'button','gadgets/button',
'listbrowser','gadgets/listbrowser',
'string',
'images/label','label',
'images/bevel',
'gadgets/checkbox','checkbox',
'amigalib/boopsi',
'libraries/gadtools',
'intuition/intuition',
'intuition/imageclass',
'intuition/gadgetclass',
'exec/nodes','exec/lists'
MODULE '*reactionForm','*stringlist','*reactionListObject','*reactionLists'
EXPORT ENUM LISTMANAGER_LISTLIST, LISTMANAGER_LISTNAME, LISTMANAGER_ITEMLIST, LISTMANAGER_ITEMNAME,
LISTMANAGER_OK, LISTMANAGER_ADD, LISTMANAGER_MODIFYNAME, LISTMANAGER_DELNAME, LISTMANAGER_DELITEM,
LISTMANAGER_SORTITEM
CONST NUMGADS=LISTMANAGER_SORTITEM+1
EXPORT OBJECT listManagerForm OF reactionForm
PRIVATE
rootLayout:LONG
lists:PTR TO stdlist
selectedList:LONG
selectedItem:LONG
columninfo1[3]:ARRAY OF columninfo
columninfo2[2]:ARRAY OF columninfo
browserlist1:PTR TO mlh
browserlist2:PTR TO mlh
ENDOBJECT
PROC makeItemsList(list:PTR TO reactionListObject) OF listManagerForm
DEF i,n,win
freeBrowserNodes(self.browserlist2)
self.browserlist2:=browserNodesA([0])
self.selectedItem:=-1
win:=Gets(self.windowObj,WINDOW_WINDOW)
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMLIST],win,0,[LISTBROWSER_LABELS, Not(0), TAG_END])
IF list
FOR i:=0 TO list.items.count()-1
IF (n:=AllocListBrowserNodeA(1, [LBNA_FLAGS,0, LBNA_COLUMN,0, LBNCA_COPYTEXT, TRUE, LBNCA_TEXT, list.items.item(i), TAG_END]))
AddTail(self.browserlist2, n)
ELSE
Raise("MEM")
ENDIF
ENDFOR
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMLIST],win,0,[LISTBROWSER_LABELS, self.browserlist2, GA_DISABLED, FALSE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTNAME],win,0,[STRINGA_TEXTVAL, list.name, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMNAME],win,0,[STRINGA_TEXTVAL, '', GA_DISABLED, FALSE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_MODIFYNAME],win,0,[GA_DISABLED, FALSE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_DELNAME],win,0,[GA_DISABLED, FALSE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_SORTITEM],win,0,[GA_DISABLED, FALSE, TAG_END])
ELSE
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMLIST],win,0,[LISTBROWSER_LABELS, self.browserlist2, GA_DISABLED, TRUE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTNAME],win,0,[STRINGA_TEXTVAL, '', TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMNAME],win,0,[STRINGA_TEXTVAL, '', GA_DISABLED, TRUE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_MODIFYNAME],win,0,[GA_DISABLED, TRUE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_DELNAME],win,0,[GA_DISABLED, TRUE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_DELITEM],win,0,[GA_DISABLED, TRUE, TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_SORTITEM],win,0,[GA_DISABLED, TRUE, TAG_END])
ENDIF
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMLIST],win,0,[LISTBROWSER_LABELS, self.browserlist2, TAG_END])
DoMethod(self.windowObj, WM_RETHINK)
ENDPROC
PROC selectList(nself,gadget,id,code) OF listManagerForm
self:=nself
self.selectedList:=code
IF id>=0
self.makeItemsList(self.lists.item(code))
ELSE
self.makeItemsList(0)
ENDIF
ENDPROC
PROC addList(nself,gadget,id,code) OF listManagerForm
DEF win,listName,n
DEF reactionList:PTR TO reactionListObject
DEF tempStr[4]:STRING
DEF node:PTR TO ln
self:=nself
win:=Gets(self.windowObj,WINDOW_WINDOW)
listName:=Gets(self.gadgetList[LISTMANAGER_LISTNAME],STRINGA_TEXTVAL)
IF StrLen(listName)>0
NEW reactionList.create(0)
AstrCopy(reactionList.name,listName)
self.lists.add(reactionList)
self.selectedList:=self.lists.count()-1
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTLIST],win,0,[LISTBROWSER_LABELS, Not(0), TAG_END])
StringF(tempStr,'\d',reactionList.id)
IF (n:=AllocListBrowserNodeA(2, [LBNA_FLAGS,0, LBNA_COLUMN,0, LBNCA_COPYTEXT, TRUE, LBNCA_TEXT, reactionList.name, LBNA_COLUMN,1, LBNCA_COPYTEXT, TRUE, LBNCA_TEXT, tempStr,TAG_END]))
reactionList.listnode:=n
AddTail(self.browserlist1, n)
ELSE
Raise("MEM")
ENDIF
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTLIST],win,0,[LISTBROWSER_LABELS, self.browserlist1, LISTBROWSER_SELECTED, self.selectedList, TAG_END])
self.selectList(self,self.gadgetList[LISTMANAGER_LISTLIST],LISTMANAGER_LISTLIST,self.selectedList)
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTNAME],win,0,[STRINGA_TEXTVAL,'',TAG_END])
IF gadget=self.gadgetList[LISTMANAGER_LISTNAME] THEN ActivateLayoutGadget(self.rootLayout, win,0,gadget)
ENDIF
ENDPROC
PROC modifyName(nself,gadget,id,code) OF listManagerForm
DEF win,listName,n
DEF reactionList:PTR TO reactionListObject
self:=nself
win:=Gets(self.windowObj,WINDOW_WINDOW)
reactionList:=self.lists.item(self.selectedList)
listName:=Gets(self.gadgetList[LISTMANAGER_LISTNAME],STRINGA_TEXTVAL)
AstrCopy(reactionList.name,listName)
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTLIST],win,0,[LISTBROWSER_LABELS, Not(0), TAG_END])
SetListBrowserNodeAttrsA(reactionList.listnode,[LBNA_COLUMN,0, LBNCA_COPYTEXT, TRUE, LBNCA_TEXT, reactionList.name,TAG_END])
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTLIST],win,0,[LISTBROWSER_LABELS, self.browserlist1, TAG_END])
ENDPROC
PROC delName(nself,gadget,id,code) OF listManagerForm
DEF win,listName,n
DEF node:PTR TO ln
DEF reactionList:PTR TO reactionListObject
self:=nself
IF self.selectedList>=0
win:=Gets(self.windowObj,WINDOW_WINDOW)
reactionList:=self.lists.item(self.selectedList)
remNode(self.gadgetList[LISTMANAGER_LISTLIST],win,0,reactionList.listnode)
self.lists.remove(self.selectedList)
END reactionList
self.makeItemsList(0)
DoMethod(self.windowObj, WM_RETHINK)
ENDIF
ENDPROC
PROC newItem(nself,gadget,id,code) OF listManagerForm
DEF win,itemName,n
DEF reactionList:PTR TO reactionListObject
self:=nself
IF self.selectedList>=0
win:=Gets(self.windowObj,WINDOW_WINDOW)
reactionList:=self.lists.item(self.selectedList)
itemName:=Gets(self.gadgetList[LISTMANAGER_ITEMNAME],STRINGA_TEXTVAL)
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMLIST],win,0,[LISTBROWSER_LABELS, Not(0), TAG_END])
IF (n:=AllocListBrowserNodeA(1, [LBNA_FLAGS,0, LBNA_COLUMN,0, LBNCA_COPYTEXT, TRUE, LBNCA_TEXT, itemName,TAG_END]))
AddTail(self.browserlist2, n)
reactionList.items.add(itemName)
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMNAME],win,0,[STRINGA_TEXTVAL, '', TAG_END])
ELSE
Raise("MEM")
ENDIF
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_ITEMLIST],win,0,[LISTBROWSER_LABELS, self.browserlist2, TAG_END])
IF gadget=self.gadgetList[LISTMANAGER_ITEMNAME] THEN ActivateLayoutGadget(self.rootLayout, win, 0, gadget)
ENDIF
ENDPROC
PROC selItem(nself,gadget,id,code) OF listManagerForm
DEF win,itemName,n
DEF reactionList:PTR TO reactionListObject
self:=nself
win:=Gets(self.windowObj,WINDOW_WINDOW)
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_DELITEM],win,0,[GA_DISABLED, code<0, TAG_END])
self.selectedItem:=code
ENDPROC
PROC delItem(nself,gadget,id,code) OF listManagerForm
DEF win,itemName,n
DEF node:PTR TO ln
DEF reactionList:PTR TO reactionListObject
self:=nself
IF (self.selectedList>=0) AND (self.selectedItem>=0)
win:=Gets(self.windowObj,WINDOW_WINDOW)
reactionList:=self.lists.item(self.selectedList)
reactionList.items.remove(self.selectedItem)
node:=self.browserlist2.head
n:=self.selectedItem
WHILE (n>0)
node:=node.succ
n--
ENDWHILE
remNode(self.gadgetList[LISTMANAGER_ITEMLIST],win,0,node)
DoMethod(self.windowObj, WM_RETHINK)
ENDIF
ENDPROC
PROC sortItems(nself,gadget,id,code) OF listManagerForm
DEF reactionList:PTR TO reactionListObject
self:=nself
IF (self.selectedList>=0)
reactionList:=self.lists.item(self.selectedList)
reactionList.items.sort()
self.makeItemsList(reactionList)
ENDIF
ENDPROC
EXPORT PROC create() OF listManagerForm
DEF gads:PTR TO LONG
DEF i
self.columninfo1[0].width:=3
self.columninfo1[0].title:='List Name'
self.columninfo1[0].flags:=CIF_WEIGHTED
self.columninfo1[1].width:=1
self.columninfo1[1].title:='List ID'
self.columninfo1[1].flags:=CIF_WEIGHTED
self.columninfo1[2].width:=-1
self.columninfo1[2].title:=-1
self.columninfo1[2].flags:=-1
self.columninfo2[0].width:=1
self.columninfo2[0].title:='List Items'
self.columninfo2[0].flags:=CIF_WEIGHTED
self.columninfo2[1].width:=-1
self.columninfo2[1].title:=-1
self.columninfo2[1].flags:=-1
self.browserlist1:=browserNodesA([0])
self.browserlist2:=browserNodesA([0])
NEW gads[NUMGADS]
self.gadgetList:=gads
NEW gads[NUMGADS]
self.gadgetActions:=gads
self.windowObj:=WindowObject,
WA_TITLE, 'Lists Manager',
WA_LEFT, 0,
WA_TOP, 0,
WA_HEIGHT, 80,
WA_WIDTH, 150,
WA_MINWIDTH, 150,
WA_MAXWIDTH, 8192,
WA_MINHEIGHT, 80,
WA_MAXHEIGHT, 8192,
WA_ACTIVATE, TRUE,
WA_PUBSCREEN, 0,
WINDOW_POSITION, WPOS_CENTERSCREEN,
->WA_CustomScreen, gScreen,
->WINDOW_AppPort, gApp_port,
WA_CLOSEGADGET, TRUE,
WA_DEPTHGADGET, TRUE,
WA_SIZEGADGET, TRUE,
WA_DRAGBAR, TRUE,
WA_IDCMP,IDCMP_GADGETDOWN OR IDCMP_GADGETUP OR IDCMP_CLOSEWINDOW,
WINDOW_PARENTGROUP, self.rootLayout:=VLayoutObject,
LAYOUT_SPACEOUTER, TRUE,
LAYOUT_DEFERLAYOUT, TRUE,
LAYOUT_ADDCHILD, LayoutObject,
LAYOUT_ORIENTATION, LAYOUT_ORIENT_HORIZ,
LAYOUT_ADDCHILD, LayoutObject,
LAYOUT_ORIENTATION, LAYOUT_ORIENT_VERT,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_LISTLIST ] := ListBrowserObject,
GA_ID, LISTMANAGER_LISTLIST,
GA_RELVERIFY, TRUE,
LISTBROWSER_POSITION, 0,
LISTBROWSER_SHOWSELECTED, TRUE,
LISTBROWSER_VERTSEPARATORS, TRUE,
LISTBROWSER_SEPARATORS, TRUE,
LISTBROWSER_COLUMNTITLES, TRUE,
LISTBROWSER_COLUMNINFO, self.columninfo1,
LISTBROWSER_LABELS, self.browserlist1,
ListBrowserEnd,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_LISTNAME ] := StringObject,
GA_ID, LISTMANAGER_LISTNAME,
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
STRINGA_MAXCHARS, 80,
StringEnd,
CHILD_LABEL, LabelObject,
LABEL_TEXT, '_Name',
LabelEnd,
LayoutEnd,
LAYOUT_ADDCHILD, LayoutObject,
LAYOUT_ORIENTATION, LAYOUT_ORIENT_VERT,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_ITEMLIST ] := ListBrowserObject,
GA_ID, LISTMANAGER_ITEMLIST,
GA_RELVERIFY, TRUE,
GA_DISABLED, TRUE,
LISTBROWSER_POSITION, 0,
LISTBROWSER_SHOWSELECTED, TRUE,
LISTBROWSER_VERTSEPARATORS, TRUE,
LISTBROWSER_SEPARATORS, TRUE,
LISTBROWSER_COLUMNTITLES, TRUE,
LISTBROWSER_COLUMNINFO, self.columninfo2,
LISTBROWSER_LABELS, self.browserlist2,
ListBrowserEnd,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_ITEMNAME ] := StringObject,
GA_ID, LISTMANAGER_ITEMNAME,
GA_DISABLED, TRUE,
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
STRINGA_MAXCHARS, 80,
StringEnd,
CHILD_LABEL, LabelObject,
LABEL_TEXT, 'Item',
LabelEnd,
LayoutEnd,
LayoutEnd,
LAYOUT_ADDCHILD, LayoutObject,
LAYOUT_ORIENTATION, LAYOUT_ORIENT_HORIZ,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_OK ] := ButtonObject,
GA_ID, LISTMANAGER_OK,
GA_TEXT, '_Ok',
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
ButtonEnd,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_ADD ] := ButtonObject,
GA_ID, LISTMANAGER_ADD,
GA_TEXT, 'Add',
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
ButtonEnd,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_MODIFYNAME ] := ButtonObject,
GA_ID, LISTMANAGER_MODIFYNAME,
GA_TEXT, '_Modify Name',
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
ButtonEnd,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_DELNAME ] := ButtonObject,
GA_ID, LISTMANAGER_DELNAME,
GA_TEXT, '_Del Name',
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
ButtonEnd,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_DELITEM ] := ButtonObject,
GA_ID, LISTMANAGER_DELITEM,
GA_TEXT, '_Del Item',
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
ButtonEnd,
LAYOUT_ADDCHILD, self.gadgetList[ LISTMANAGER_SORTITEM ] := ButtonObject,
GA_ID, LISTMANAGER_SORTITEM,
GA_TEXT, '_Sort Item',
GA_RELVERIFY, TRUE,
GA_TABCYCLE, TRUE,
ButtonEnd,
LayoutEnd,
CHILD_WEIGHTEDHEIGHT, 0,
LayoutEnd,
WindowEnd
self.gadgetActions[LISTMANAGER_LISTLIST]:={selectList}
self.gadgetActions[LISTMANAGER_ADD]:={addList}
self.gadgetActions[LISTMANAGER_MODIFYNAME]:={modifyName}
self.gadgetActions[LISTMANAGER_DELNAME]:={delName}
self.gadgetActions[LISTMANAGER_LISTNAME]:={addList}
self.gadgetActions[LISTMANAGER_ITEMNAME]:={newItem}
self.gadgetActions[LISTMANAGER_ITEMLIST]:={selItem}
self.gadgetActions[LISTMANAGER_SORTITEM]:={sortItems}
self.gadgetActions[LISTMANAGER_DELITEM]:={delItem}
self.gadgetActions[LISTMANAGER_OK]:=MR_OK
ENDPROC
PROC end() OF listManagerForm
freeBrowserNodes(self.browserlist1)
freeBrowserNodes(self.browserlist2)
END self.gadgetList[NUMGADS]
END self.gadgetActions[NUMGADS]
DisposeObject(self.windowObj)
ENDPROC
EXPORT PROC manageLists() OF listManagerForm
DEF rlist:PTR TO reactionListObject
DEF i
DEF tempStr[4]:STRING
DEF n
DEF hintInfo:PTR TO hintinfo
self.lists:=getReactionLists()
self.selectedList:=-1
self.makeItemsList(0)
hintInfo:=New(SIZEOF hintinfo*9)
hintInfo[0].gadgetid:=LISTMANAGER_ADD
hintInfo[0].code:=-1
hintInfo[0].flags:=0
hintInfo[0].text:='Add a new list'
hintInfo[1].gadgetid:=LISTMANAGER_MODIFYNAME
hintInfo[1].code:=-1
hintInfo[1].flags:=0
hintInfo[1].text:='Update the name of the selected list'
hintInfo[2].gadgetid:=LISTMANAGER_DELNAME
hintInfo[2].code:=-1
hintInfo[2].flags:=0
hintInfo[2].text:='Remove the selected list entirely'
hintInfo[3].gadgetid:=LISTMANAGER_DELITEM
hintInfo[3].code:=-1
hintInfo[3].flags:=0
hintInfo[3].text:='Delete the currently selected list item'
hintInfo[4].gadgetid:=LISTMANAGER_SORTITEM
hintInfo[4].code:=-1
hintInfo[4].flags:=0
hintInfo[4].text:='Sort the currently selected list'
hintInfo[5].gadgetid:=LISTMANAGER_OK
hintInfo[5].code:=-1
hintInfo[5].flags:=0
hintInfo[5].text:='Close the list editor and save changes'
hintInfo[6].gadgetid:=LISTMANAGER_LISTNAME
hintInfo[6].code:=-1
hintInfo[6].flags:=0
hintInfo[6].text:='Enter the list name here'
hintInfo[7].gadgetid:=LISTMANAGER_ITEMNAME
hintInfo[7].code:=-1
hintInfo[7].flags:=0
hintInfo[7].text:='Enter the list item name here'
Sets(self.windowObj,WINDOW_HINTINFO,hintInfo)
Sets(self.windowObj,WINDOW_GADGETHELP, TRUE)
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTLIST],0,0,[LISTBROWSER_LABELS, Not(0), TAG_END])
FOR i:=0 TO self.lists.count()-1
rlist:=self.lists.item(i)
StringF(tempStr,'\d',rlist.id)
IF (n:=AllocListBrowserNodeA(2, [LBNA_FLAGS,0, LBNA_COLUMN,0, LBNCA_COPYTEXT, TRUE, LBNCA_TEXT, rlist.name, LBNA_COLUMN,1, LBNCA_COPYTEXT, TRUE, LBNCA_TEXT,tempStr,TAG_END]))
rlist.listnode:=n
AddTail(self.browserlist1, n)
ELSE
Dispose(hintInfo)
Raise("MEM")
ENDIF
ENDFOR
SetGadgetAttrsA(self.gadgetList[LISTMANAGER_LISTLIST],0,0,[LISTBROWSER_LABELS, self.browserlist1, TAG_END])
IF self.showModal()=MR_OK
ENDIF
Dispose(hintInfo)
ENDPROC -1