Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Methods with PgUp andPgDn.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00012052
Message ID:
00012053
Views:
39
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
Previous
Reply
Map
View

Click here to load this message in the networking platform