Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView ActiveX .. HELP PLEASE !
Message
From
04/11/1998 15:51:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ListView ActiveX .. HELP PLEASE !
Miscellaneous
Thread ID:
00154548
Message ID:
00154548
Views:
49
Hello All.
Help please to resolve the problem.
As soon as in ItemClick I insert MESSAGEBOX for me Item begins to be dragged on all list at movement of the mouse (WHY !! %-0).
In ItemClick I check the data and if after check the data do not satisfy to a condition I remove it. MESSAGEBOX with inquiry about deleting of the data.
I specially have written PRG which illustrates the usual situation. Is possible another solution for this problem ?
Thanks.
Denis

****** TEST.PRG ***********
PUBLIC oform1

oform1=CREATEOBJECT("form1")
oForm1.ADDOBJECT('Olecontrol1', 'ocxlist','COMCTL.ListViewCtrl.1')
oform1.Show
RETURN

*-- BeginDefine ocxlist
DEFINE CLASS ocxlist AS olecontrol

Top = 12
Left = 12
Height = 204
Width = 312
Name = "Olecontrol1"
Visible = .t.

PROCEDURE ItemClick
*** OLE Control Event *** PROBLEM !!!!!!!!!!!
LPARAMETERS item
=MESSAGEBOX("Test situation")
ENDPROC

PROCEDURE Init
LPARAMETERS lp
FOR i = 1 TO 10
cKey = "_"+ALLTRIM(STR(i))
oListX = THIS.ListItems.ADD(,cKey,"Number = "+ALLTRIM(STR(i)))
ENDFOR
ENDPROC

ENDDEFINE
*-- EndDefine: ocxlist

*--BeginDefine: form1
DEFINE CLASS form1 AS form
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ENDDEFINE
*-- EndDefine: form1
Next
Reply
Map
View

Click here to load this message in the networking platform