Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LostFocus Native Behaviour
Message
From
06/08/2001 08:50:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/08/2001 08:32:27
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00540072
Message ID:
00540086
Views:
15
>I'm sure there is something in my code causing this, but...
>
>I'm setting the focus from a command button Click on one page to the first object on another page. When the object receives the focus it immediately gives it away to the second object. I can stop the focus on the first object by putting NoDefault in the LostFocus, but this also keeps the cursor from moving away from the first object. Even if I remove the SetFocus line from the command button on the first page, the behaviour is the same. This focus stuff is killing me lately - and my project timelines... Any ideas on what I should be looking for? Thanks!
>
>Regards, Renoir

Renoir,
It shouldn't have something with commandbutton's setfocus. Are you sure in Gotfocus, When etc or target object doesn't have some code to lend focus to next ?
If code is already complex enough to find where i stems from you could still use Lostfocus with a flag :
if this.Tag ='keepfocus'
 nodefault
 this.Tag = ''
endif
Commandbutton click or some UIEnable would set Tag to 'keepfocus' for the first object. A quick-temp fix :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform