PRB: MouseMove Events Fires on Disabled Control in Visual FoxPro (173782)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q173782 SYMPTOMS
In Visual FoxPro 3.x and 5.x, the MouseMove event fires when you move over
a disabled control. This behavior may confuse some developers because the
MouseMove event does not fire on a disabled control in Visual Basic 5.0 and
Microsoft Access 97.
RESOLUTION
You must write code to determine the status of the Enabled property of the
object and then conditionally perform the MouseMove event method code. The
following code checks if the object's Enabled property is true and if so,
permits your MouseMove method code to conditionally execute.
IF This.Enabled=.t.
ThisForm.Command2.Visible=.f.
ENDIF
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/10/2003 |
---|
Keywords: | kbprb KB173782 kbAudDeveloper |
---|
|