Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus twice
Message
De
30/10/2008 20:28:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01358520
Message ID:
01358529
Vues:
19
>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.

Would Thisform.LockScreen = .T. at the beginning and .F. at the end of the Init method work????
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform