PRB: InteractiveChange Event of List Box Does Not Execute After Clicking and Dragging a List Box ItemID: Q215442
|
The InteractiveChange event of a list box does not execute when the mouse button is clicked on a list box item, held while the mouse pointer is dragged to another item in the list box, and then released.
Using Visual FoxPro 3.0 or Visual FoxPro 5.0, depressing the left-mouse button with the mouse pointer on a list box item, dragging the mouse pointer to another item in the list box and then releasing the mouse button causes the ListBox.InteractiveChange event to execute. However, the InteractiveChange event does not fire in Visual FoxPro 6.0.
PUBLIC ox
ox=CREATEOBJECT('listtest')
ox.SHOW
DEFINE CLASS listtest AS FORM
HEIGHT = 168
WIDTH = 169
DOCREATE = .T.
AUTOCENTER = .T.
CAPTION = "Form1"
NAME = "Form1"
ADD OBJECT list1 AS LISTBOX WITH ;
HEIGHT = 120, ;
LEFT = 24, ;
TOP = 24, ;
WIDTH = 120, ;
NAME = "List1"
PROCEDURE INIT
FOR i=1 TO 7
THISFORM.list1.ADDITEM(REPLICATE('0', ;
4-LEN(ALLTRIM(STR(i))))+ALLTRIM(STR(i)))
NEXT
ENDPROC
PROCEDURE list1.INTERACTIVECHANGE
=MESSAGEBOX(this.value,64,'InteractiveChange')
ENDPROC
ENDDEFINE
Additional query words:
Keywords : kbContainer kbCtrl kbVFp600
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: February 5, 1999