Microsoft KB Archive/221701

= FIX: MouseUp Event Does Not Fire on Contained Objects =

Article ID: 221701

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221701



SYMPTOMS
The MouseUp event of a container does not fire when you click on a disabled object within the container. However, the MouseUp event does fire when you click elsewhere in the container object.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



MORE INFORMATION
This behavior seems to occur when the container's Move and MouseMove events have had code in them and, therefore, appear in the Properties sheet as having a user procedure attached to them.

Steps to Reproduce Behavior
 Create a form.  Place a container control on the form and set the following properties and events: MouseDown event= WAIT WINDOW "MouseDown Event" NOWAIT MouseUp event= WAIT WINDOW "MouseUp Event" NOWAIT BackColor=0,0,160

 Open the container's Move event, add some code, and then delete it. When you return to the Properties sheet, the Move event should have [User Procedure] next to it instead of [Default]. However, it will be empty. Repeat step 3 on the MouseMove event of the container. Right-click the container and choose Edit from the short-cut menu. Place a shape or command button object inside the container and set the following properties: * If using a shape, change the BackColor Property

BackColor=0,128,0

Enabled=.F.

 Run the form.</li> Click on the container (the blue area) and note that both the MouseDown and MouseUp events fire.</li> Click on the shape (the green area) and note that only the MouseDown event fires.</li></ol>

Keywords: kbbug kbfix kboop kbcontainer kbctrl kbvs600sp3fix KB221701

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.