Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to cancel form's lostfocus event?
Message
From
29/11/1998 10:01:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
How to cancel form's lostfocus event?
Miscellaneous
Thread ID:
00162218
Message ID:
00162218
Views:
54
Hello

I have two forms on the screen and want to cancel lostfocus event in the active form when a given condition returns false.
I tried nodefault keyword, but it doesn't seem to work fine.

This is the code in the lostfocus event:


if ! thisform.any_method()
wait window 'losing focus'
nodefault
endif

When i click on the inactive form, the 'losing focus' message is displayed, the inactive form seems to be the active form because its title bar color is changed. Finnaly this form becomes the active one.

thisform.show() doesn't work either

What am i doing wrong?

Thanks.

Juan Carlos
Next
Reply
Map
View

Click here to load this message in the networking platform