Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's different between Ctrl-tab and click to a page
Message
De
21/08/2007 05:47:05
 
 
À
21/08/2007 05:16:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01249290
Message ID:
01249296
Vues:
22
>Hi,
>
>I have a form with a pageframe and 3 pages, in page1's ACTIVATE event I have
>
>This.edtBox1.SetFocus()
>
>so that each time the page is brought on top, the EDITBOX edtbox1 will be selected automatically.
>
>I get what I want when
>1) The form is intially launched.
>2) If I click to page1 from another page.
>
>But if I press Ctrl+Tab to switch to page1 from another page, the edtBox1 won't get focus!
>when I use the keyboard to switch to that page why is it different from mouse click or am I doing something wrongly?

Have you tried:

In the GotFocus() event of Page 1:

This.edtBox1.SetFocus()

so that every time page 1 gets the focus, either from clicking its tab, or hot-keying to it, it passes on the focus to the editbox.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform