Capturing Key Presses in View
[1/3] from: cribbsj::oakwood::org at: 27-Sep-2000 9:42
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
[2/3] from: allen:rebolforces at: 28-Sep-2000 0:37
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
[3/3] from: cribbsj:oakwood at: 27-Sep-2000 14:17
Thanks, Allen. That did the trick!
Jamey.
On Wed, 27 Sep 2000, you wrote: