Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Key tab and pageframe
Message
De
22/08/2006 10:07:20
 
 
À
22/08/2006 09:58:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01147528
Message ID:
01147572
Vues:
19
>>>>>>>Why sometimes pressing key tab on form with pageframe the focus goes to another page. How to avoid this?
>>>>>>
>>>>>>When you press a tab, the corresponding page will get focus by default. If that does not happen to you, you must have added code which overrides the default behavior.
>>>>>
>>>>>Which method must I use to avoid that the cursor goes to another page?
>>>>
>>>>Do you mean that you do NOT want the page to change when someone presses a tab?
>>>
>>>Yes.
>>
>>I guess you want them to be able to switch pages, but only under when some criteria is met?
>>I guess something like this would work
>>pageX.deactivate:
>>if not yourcondition
>>  nodefault
>>endif
>>If that's not what you want, you can set Tabs to .F., or disable the other pages. But if so, why use a pageframe at all?
>
>I think Tony's saying that he's on a page and presses TAB, hoping to tab to the first/next field, but instead the page tab is activated and he goes to another page. If so this is strange behaviour as, even when you click on a page tab, then hit the TAB key, it uysually tabs to te first field on that page in the Tab Order.
>
>Tony, I suggest you test all the properties of your form objects, to check that the .Tabs property is NOT set to .F.
>
>Also, check the .Taborder property on h page where you expect to tab from field to field. Do this via View Menu -> Tab order.

Gotcha, yes. I would like to go to another page just clicking on that page not by pressing tab key. When pressing tab key I want the cursor skips to another field according what is defined in tab order page, but in the same page.
Antonio Carlos Kleinübing
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform