Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
In-Top-Level Form not receiving focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00523315
Message ID:
00523557
Vues:
10
>>My app starts with SCREEN=OFF in Config.fpw and a splash screen as a top-level form. The login form is called as an in-top-level form before I set _Screen.Visible = .t., but is not receiving focus until I click on it. I'd like users to be able to type as soon as they see the form. Any ideas? Thanks.
>
>Hi Joel,
>
>We do this. In the .Init of the top-level form, it sets focus to a textbox that is way off the form. The "main" program which is run at startup, instatiates the top-level form and then calls up the login form. The main program checks for a successful login, if not, out, if good, the main menu on the top-level form is displayed. We don't have any problems with this approach.
>
>Let me know if you need more.
>
>Steve

Hmmm... that didn't work for me, but my scenario is a little different. My top-level form is just a splash screen, and it has a progress bar. I'm sure that changes things a little bit. Anyway, I've implemented a workaround where I move the main application window off of the desktop at coordinates -2000, -2000 and set _Screen.Visible = .t. This causes the login form to receive focus. It's kinda clunky (which is why I wanted to find another way), but it works.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform