Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New VFP 5 user needs help with WHEN event
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00103144
Message ID:
00103162
Views:
25
Robert,

If the When() event returns .F. the button can not get focus. But I'm with the others, this is not a standard windows interface design. If they can't click the button set it's .Enabled = .F., set it .T. when they can click it. Otherwise you'll end up with support calls asking why nothing happens sometimes when they click the mouse on the button.

>I am using VFP 5.0 and want to keep a user from pressing a button but not disabling it. I understand that with other versions you could use the WHEN event (when the control is going to receive focus) and preventing the click event to occure. This permits you to disable the button without greying it out.
>Is this possible? I haven't been able to do it or don't know what event to cancel at this point in the sequence.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform