Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulate Browse Freeze in a grid
Message
From
03/02/2008 10:20:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01287373
Message ID:
01288671
Views:
11
>>I did finally get this to work using a Grid. First I set Enable = true for all columns. In the GotFocus of the textboxes in columns 1 through 3 I issued a SetFocus to column4. Then, in the GotFocus of column4.text1, I evaluate its Value and refresh the page appropriately. The browse would have been much easier but just didn't look as nice.
>
>Bad idea to use setfocus() within a gotfocus(). You will most likely get an error when you least want it saying Cannot set focus from withing a gotfocus...

You better keep returning a zero or a .f. from the textbox's .valid(), that's its purpose.

You may also issue a nodefault in the .lostfocus, though I didn't try that one for quite a while and can't say whether it'll work.

Of course, you must provide a way out :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform