BUG: Mouse Down Triggered on a Minimized Window (135817)
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.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q135817 SYMPTOMS
The MouseDown event of a form occurs when the user presses a mouse button
when the form has the focus. It is very useful when trying to detect mouse
clicks or performing a specific action when the mouse is pressed. Forms
created in Visual FoxPro running under Windows 3.1, Windows for Workgroups,
and Windows 95 execute code in their MouseDown events when the Form is
minimized. This behavior is not expected because MouseDown events should
occur only when the Form is active.
WORKAROUND
Place the following code in the MouseDown event of the form:
IF THISFORM.WindowState <> 1
FORM::MouseDown
* Any event, such as wait window prevents the default MouseDown event
ENDIF
With this code, the default MouseDown event code will fire only if the
window is not minimized.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbBug KB135817 kbAudDeveloper |
---|
|