Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set focus twice
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to set focus twice
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01358520
Message ID:
01358520
Views:
79
Hi,

I am trying to prevent a window from "jumping." Here is what I mean:

I have a form that in the INIT method has code where the focus is first set to a container and then to a control in this container. When I run the INIT of this form in debugger (slowly) I see that the window is displayed twice, one each SetFocus(). So it makes the window jump. I tried to set the window Visible to .F. but on the first SetFocut the window is still displayed; and then on the second SetFocus.

Any suggestions?

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform