Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form
Message
De
19/06/1997 12:33:05
 
 
À
19/06/1997 12:25:47
Ying Wang
New York State Health Dept
Albany, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Form
Divers
Thread ID:
00036975
Message ID:
00036992
Vues:
32
>>>I have a PageFrame on a form with a few pages. I don't know how to use PageDown or PageUp keys to move between pages. I can only use arrow key to do so.
>>>
>>>
>>>Thanks for any input.
>>>
>>>
>>>Ying
>>
>>The basic idea is following:
>>1. Use For.KeyPress event (with Form.KeyPreview=.T.) to intercept any key combination pressed by user.
>>2. From this event you can fire code like
>>This.pgFrame1.ActivePage=3
>>to open page #3, etc.
>
>
>If my curser is on page x and I press the PageDown key to go to page x+1
>what kind of code should use?

This.pgFrame1.ActivePage=This.pgFrame1.ActivePage+1
and don't forget to check that this is not last page.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform