PDA

View Full Version : Cicle through pages using the arrow keys


acjnas
06-09-2009, 03:32 PM
I know in the page properties there is a On Key tab.
Also understand that the keys on the keyboard are represented by numbers.

What would be the code that needs to be added to the On Key tab in order to cycle through pages using the up and down arrow keys.

Thank you for your help

Imagine Programming
06-09-2009, 03:41 PM
In the OnKey event.


if(e_Key==37)then --Page backwards? Arrow left.
Page.Navigate(PAGE_PREVIOUS);
elseif(e_Key==39)then --Arrow right.
Page.Navigate(PAGE_NEXT);
end



Check out Imagine Keystroker (http://imagine-programming.com/Product/2/), it finds the keycode matching the key you press :)

acjnas
06-09-2009, 03:56 PM
Thank you.

I am ready to go on

Teqskater
06-10-2009, 12:49 PM
Also have a look at the help file under "virtual key codes". Those are the numbers. For example: the "Enter" key is number 13.

Do you get it?

Imagine Programming
06-10-2009, 01:49 PM
Also have a look at the help file under "virtual key codes". Those are the numbers. For example: the "Enter" key is number 13.

Do you get it?

He asked for the code to be placed in the On Key event, not for the keycodes specificly.