Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paging Up/Down in Grid
Message
From
12/11/1997 08:46:40
 
 
To
12/11/1997 01:58:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00059642
Message ID:
00059668
Views:
32
>Hi all,
>
>I have a grid in a pageframe and when the grid is in focus, if I pressed page-down the grid will scoll down. Instead of this I prefer to page to next page, can this be done?
>
>Thanks.
>
>Farouk Yew Abdullah
Hi Farouk.

Set the KeyPreview property of the form to .T. Then you can put some code in the keypress even of the form to take action when it sees a page down key...something like:
if nkeycode = 3 or nkeycode = 51                  && page down
   If thisform.pageframe1.activepage = thisform.pageframe1.pagecount
      thisform.pageframe1.activepage = 1
   else
      thisform.pageframe1.activepage = thisform.pageframe1.activepage + 1
   endif
endif   
You can user similar code to trap for page up and take appropriate action.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform