Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: grid.MouseMove it is not called when it would owe
Message
From
22/09/2005 04:01:32
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
BUG: grid.MouseMove it is not called when it would owe
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01051867
Message ID:
01051867
Views:
49
When an object is disabled
the event MouseMove is called on the object
and on the whole hierarchy up to the form,
a NODEF command stop the call sequence.

A non binded grid is implicitly disabled.
it is a design choice, debatable but subjective.

The bug:
On a not binded grid a movement of the mouse doesn't produce some event.

Repro.
Expected :
- Grid.MouseMove call
- Form.MouseMove call
and the Grid become RED.

run and move the mouse over the grid area.
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show

DEFINE CLASS form1 AS form
	
	ADD OBJECT grid1 AS grid WITH ;
		Height = 500, ;
		Left = 26, ;
		RecordSource = " ", ;
		Top = 10, ;
		Width = 325, ;
		Name = "Grid1"

	PROCEDURE grid1.MouseMove
		LPARAMETERS nButton, nShift, nXCoord, nYCoord
		this.BackColor = 255
	ENDPROC

ENDDEFINE
Reply
Map
View

Click here to load this message in the networking platform