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