Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit box doesn't work with CTRL-F if code in GotFocus()
Message
From
05/09/2003 07:44:25
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00826046
Message ID:
00826338
Views:
26
This message has been marked as the solution to the initial question of the thread.
Hi Mechelle.

After some experimenting, I finally figured out that it doesn't work if there is code in the GotFocus() event. Adding DODEFAULT() doesn't help. Is there any way around this?

I just tested this with one of my edit box subclasses. It works just fine if your sub-class has code in the GotFocus, but you have to wrap it like this:
*** Make sure the native VFP behavior happens first
EditBox::GotFocus()

*** Your custom code here

*** Suppress native VFP behavior here
NODEFAULT
Now, if there is code in the instance, you can just make sure that you issue a DODEFAULT() at the beginning and a NODEFAULT after your custom code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform