Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG in ListBox, mousemove fire ProgrammaticChange
Message
From
18/02/2004 08:20:14
 
 
To
18/02/2004 06:18:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00878222
Message ID:
00878244
Views:
16
I agree, Fabio. Individual clicks use InteractiveChange, but holding the mouse button uses ProgrammaticChange. Possibly to Microsoft's way of thinking, since you don't click the button, then the program is making the change for you, and so it uses ProgrammaticChange.

In a kind of twisted logic, maybe it makes a sort of sense, but I have to agree with you. I think it should be using InteractiveChange.

Alan

>Fill a ListBox, hold down left mouse button,
>and move on list Items:
> multiple ProgrammaticChange occurs
>
>correct is multiple InteractiveChange !
>
>repro:
>
>PUBLIC oform1
>
>oform1=NEWOBJECT("form1")
>oform1.Show
>RETURN
>
>DEFINE CLASS form1 AS form
>
>	ShowWindow = 2
>	DoCreate = .T.
>	Caption = "Form1"
>	Name = "Form1"
>
>
>	ADD OBJECT list1 AS listbox WITH ;
>		RowSourceType = 1, ;
>		RowSource = "AAAA,BBBB,CCCC,DDDD,EEEE", ;
>		Height = 170, ;
>		Left = 20, ;
>		Top = 11, ;
>		Width = 100, ;
>		Name = "List1"
>
>	PROCEDURE list1.ProgrammaticChange
>           WAIT windows "programmaticchange   "+STR(m.this.ListIndex) NOWAIT	
>        ENDPROC
>
>
>ENDDEFINE
>
>
>Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform