Cursor keys on a list (/view)
[1/2] from: cybarite:sympatico:ca at: 10-Sep-2001 20:52
Have a look at the calculator script by Jeff Kreis in the rebol script library.
It shows how to re-act to all of the numeric keys plus "+", "-" ....
If you do not want a visible key, then you can link the keycodes to a sensor
{
===Sensor
---Purpose
A sensor is an invisible user interface element. Using a sensor only makes
sense in a few instances.
If you want a keycode action where there is no visible user interface
element to link the action to then a sensor can be used.
This sensor code adds an Escape or Back or Enter action that will close the
window.
sensor 1x1 keycode [#"^M" #" " #"^(back)" #"^(ESC)"] [unview]
}
At 09:58 AM 9/10/01 -0700, you wrote:
[2/2] from: rgagliardi:home at: 10-Sep-2001 9:58
Hi All,
(This is probably a /view newbie question.)
I need to support cursor-keys on a list face, i.e. up-arrow -> up one line,
pg-dn -> down one page, etc.
I can make buttons that will do that, but I can't find a way to specify the
cursor keys as characters for the buttons to respond to. Besides, I really
don't want to have those buttons on the form (though I suppose I could
locate and size them to go along with the slider.
Any suggestions?
Thanks!
-- Ric