PRB: Double-Clicking a Check Box Does Not Change Its ValueID: Q146021 3.00 3.00b WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSWhen you double-click a check box, its value changes once. For example, if a check box is unchecked, double-clicking it marks it as checked. A double- click does not behave differently from a click. It was expected that double- clicking a check box would change the value twice, resulting in no change at all.
CAUSEWhen you double-click the check box, the Click event is triggered after the first click. This is what changes the value of the check box. The DblClick is then triggered. Visual FoxPro does not modify the value of a check box when the DblClick event is triggered.
WORKAROUNDTo change the value of a check box with a double-click, you can insert either of the following commands in the DblClick event handler:
This will force the value to change when the DblClick event is activated.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a new form, and place a check box on the form. 2. Save the form, and run it. The check box is not checked. 3. Double-click the check box. The check box is checked. Close the form. 4. Modify the form. Insert the following command in the DblClick event:
5. Save the form, and run it. When you double-click the check box, it
Additional reference words: 3.00 3.00b double click
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral
|
Last Reviewed: May 19, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |