Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor position when form loses/regains focus
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01090211
Message ID:
01090334
Views:
9
Hi Larry, Marc and Fabio,

Hey thanks for the input.... Just an FYI I discovered the source of the problem. In the code that was exectuted by the global timer object to update form "B" there is code to display the datetime. Generally I want this to be in 24HR format. I noticed that along the way I had inserted the command;

SET HOUR TO 24

Well interestingly enough issuing that SET command was what caused the problem. By removing the set command from the timer event code the problem goes away! Now the timer fires, form "A" loses momentarily focus, form "B" is updated and when focus returns to form "A", the cursor is exactly where it was before focus was lost.
Previous
Reply
Map
View

Click here to load this message in the networking platform