Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling an object in a grid
Message
From
07/02/2003 08:16:41
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
06/02/2003 13:35:26
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00750051
Message ID:
00750519
Views:
21
Yep ... it's a good day when I only find 1-2 bugs, er, "features" ...

Coincidently, I wasted a fair amount of time on this one today too.

The .When seems to execute everytime ... but the RETURN .F. is simply ignored when the mouse is clicked.

This seemed to be the "tidiest" solution (in the TextBox's .When):
IF MDOWN()
   KEYBOARD "{TAB}" PLAIN
ENDIF

RETURN .F.
(2 steps forward, 1 step back).

>I'm trying to put code in all kinds of places to handle this on a grid; so far unsuccessfully. When a checkbox is checked and user goes to the adjacent column's textbox it should be disabled. All is well unless the user simply clicks on the textbox with the mouse. It remains enabled. I've tried the textbox When, GotFocus and other places. Why won't it disable if I have code in the When to handle it?
Previous
Reply
Map
View

Click here to load this message in the networking platform