Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox with MoverBars - How do I test for order change?
Message
From
09/03/2005 09:55:09
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993763
Message ID:
00994001
Views:
31
Hi Borislav,

Your code sample also works for me. Perhaps it's a problem with my listbox class. Looks like I'll have to go digging further :(

Thanks for the assistance.

Mike


>It works for me. Try this:
>
>
>PUBLIC oform1
>
>oform1=NEWOBJECT("form1")
>oform1.Show
>RETURN
>
>
>	**************************************************
>*-- Form:         form1 (d:\all_zapl\tte.scx)
>*-- ParentClass:  form
>*-- BaseClass:    form
>*-- Time Stamp:   03/09/05 04:41:10 PM
>*
>DEFINE CLASS form1 AS form
>
>
>	DoCreate = .T.
>	Caption = "Form1"
>	Name = "Form1"
>
>
>	ADD OBJECT list1 AS listbox WITH ;
>		Height = 170, ;
>		Left = 29, ;
>		MoverBars = .T., ;
>		Top = 21, ;
>		Width = 287, ;
>		Name = "List1"
>
>
>	PROCEDURE Init
>		FOR asd = 1 TO 15
>		    thisform.List1.AddItem(TRANSFORM(asd))
>		NEXT
>	ENDPROC
>
>
>	PROCEDURE list1.OnMoveItem
>		LPARAMETERS nSource, nShift, nCurrentIndex, nMoveBy
>		WAIT WINDOW "I like to moved. moved :o)))"
>	ENDPROC
>
>
>ENDDEFINE
>*
>*-- EndDefine: form1
>**************************************************
>
Previous
Reply
Map
View

Click here to load this message in the networking platform