Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CANCEL Button code never executes
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01296297
Message ID:
01296489
Views:
8
>I see a problem with my code which comes from the EDIT button; the code sets the focus to the Work Order Textbox which checks the status of the control to see if any data has been changed. If no data is changed as you are losing focus (LOSTFOCUS), then the CANCEL button is disabled. Maybe I need to turn off the SetFocus() for the textbox and see what happens.
>
>>I just wanted to check ReadOnly and Enabled properties of the Cancel button after you clicked on the Edit button. You can add this code in Click method, doesn't matter.

Basically, this is the correct behavior - if nothing has changed, there is nothing to Cancel. May be you don't need to change anything, just remove the extra debug staff we put there?

But why you don't see the difference in Enabled vs. Disabled appearance of the button?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform