Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Methods with PgUp andPgDn.
Message
De
12/11/1996 12:54:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00012052
Message ID:
00012053
Vues:
43
Luis -

I have done the same thing with a pageframe and discovered that I had to move the procedure that is run from the on key into the procedure file. When you do this, you must also name the form that you are running.
i.e. "DO FORM MyForm NAME Formname"

Within the procedures, I then reference the individual pages explicitly: "FormName.PageFrameName.ActivePage = pageno"



>Hi guys !!,
>I have a form with a pageframe which has 5 pages.
>I want to be able to let the user switch pages with
>the "page up" and "page down" keys. I tried
>creating a method that accept a numeric parameter
>1 and -1 to increase or decrease the current
>active page and then make the previous or next one current,in the load event of the form I have this
>ON KEY LABEL PGUP DO trap_key WITH -1
>ON KEY LABEL PGDN DO trap_key WITH 1
>but when I press the PgUp or PgDn Key it tells me
>program trap_key.prg not found. How can I call a
>method with PgUp and PgDn ?
>Any sugestion will be apreciated ?
>Thanks in advance.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform