Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page, Pageframe, Tab
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00463927
Message ID:
00463970
Vues:
10
>I have a pageframe on my form with multiple page.
>When no control have the focus on page one, for example the last control lost the focus by pressing TAB key, I want the page two to have the focus automaticaly. When a page lost the focus, the focus isn't going to the pageframe.
>
>Where should I put the code to do this?
>There's no Lostfocus method, I have tried Deactivate event with no succes.
>May be there is a property?

Hi, Eric.

You could do it with code in your base classes, but I think it would be a lot of overhead just for a few cases (unless you use lots of pageframes).

But you can make a little pageframe builder (or expand it if you already have it) to cycle trough all the controls on each frame, picking the highest taborder (with tabstop=TRUE) and then apply to that a piece of code in it's lostfocus to jump to next frame's first control.

If you haven't write a builder yet, don't panic. It's easier that it seems. Take a look at the BuilderX class that comes with VFP.

Maybe there is a simpler solution, of course.

Good luck.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform