Here is an example that shows using the keycodes with a variety of styles.
For using this with lists look at the FAQ in the rebol.com directory in the
test panel, also at FuncBrowse in my RF Reb.
; all doing the same action, so I'll just define it once
action-block: [print mold face/keycode]
view layout [
size 200x200
key keycode [left] action-block
arrow right yellow keycode [right] action-block
text "Down" keycode [down] action-block
button "Up" keycode [up] action-block
key keycode [home] action-block
key keycode [end] action-block
key keycode [page-up] action-block
key keycode [page-down] action-block
]
Cheers,
Allen K
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2000 11:42 PM
Subject: [REBOL] Capturing Key Presses in View
> Hello,
>
> I have a view form with a list on it. I want to be able to give the user
the
> ability to scroll through the list using the arrow keys and the page up
page
> down keys.
>
> I have read the beta view docs and even probed the system/view object, but
I
> still can't figure out how to do this.
>
> Could someone please point me in the right direction?
>
> Thanks!
> --
> Jamey Cribbs
>
>