Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't my Top-Level Form gets focus?
Message
De
14/02/2001 03:34:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00474894
Message ID:
00475598
Vues:
27
Thanks it worked in this project, but I have another project which shows a spash-screen before the actual form. In that case it didn't work... Any idea?

/Mårten Törnquist

>>I'm having a small problem in a project which consist of only one form which is set to be top-level. Everything works alright except for the fact when I run the project the form don't get the focus until I click on it. Why is that?
>>
>>In my project I have a main.prg which is the first thing to run and which has the following code:
>>
>>
>>CLEAR
>>CLEAR ALL
>>CLOSE ALL
>>
>>_SCREEN.VISIBLE	= .F.
>>
>>** Make sure that the program is working in the right directory.
>>SET DEFAULT TO (JUSTPATH(FULLPATH(SYS(16))))
>>
>>** Opens any classlibs or procedure files that are needed.
>>SET LIBRARY TO focus ADDITIVE
>>SET PROCEDURE TO odclutils ADDITIVE
>>
>>** Start the main form.
>>DO FORM myform
>>READ EVENTS
>>
>>
>>What shall I do so that my form gets the focus directly when running the project?
>
>The only time I notice this behavior is when the application does not have, SCREEN=OFF in the configuration file or the configuration file doesn't exist. I just ran some tests on a SDI (top-level) application. When it was run as you without a configuration file, the behavior duplicated what you describe. However, when it was it received the focus without any problems.
---( Mårten Törnquist )---
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform