Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    4

    Cicle through pages using the arrow keys

    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

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    In the OnKey event.

    Code:
        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, it finds the keycode matching the key you press
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    May 2009
    Posts
    4

    It did worked !!

    Thank you.

    I am ready to go on

  4. #4
    Join Date
    Apr 2007
    Posts
    165
    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?

  5. #5
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by Teqskater View Post
    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.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts