[REBOL] Re: probing events...
From: rotenca:telvia:it at: 31-Oct-2001 18:19
Hi, Media
This come from from old doc:
http://www.rebolforces.com/archive/view099users.html#HandlingEvents
-----------
Event Refinements
/type Returns event type. The event types are:
'down, 'middle-down, 'right-down - mouse down event for the left, middle or
right mouse button (pressing down on the mouse button)
'up, 'middle-up, 'right-up - mouse up event for the left, middle, or right
mouse button (releasing the mouse button)
'move - mouse move event (position of the mouse cursor over a REBOL/View
window
'key - keyboard event (keyboard input)
'time - time event (unique time index - latest event has the highest number)
'resize - resize window event (whenever the window is resized)
'close - close window event (exiting the REBOL/View window session)
'active - window active, occurs when window becomes active again after being
inactive while another application was active
'inactive - window inactive, occurs when window becomes inactive as when
another application becomes active
/offset Returns the mouse cursor offset relative to the REBOL/View window. The
offset returned has different meaning depending on the event type:
'down, 'middle-down, 'right-down - the offset when the mouse button is
pressed.
'up, 'middle-down, 'right-down - the offset when the mouse button is released.
'move - the offset at the moment the mouse is moved. The frequency at which
mouse move events are sent to the event port will vary per system. When the
mouse cursor is outside the REBOL/View window, no move events are sent to the
event port.
'key - the mouse cursor offset at the moment of keyboard input. When the mouse
cursor is outside the REBOL/View window and a keyboard event occurs, the
offset value will be positive or negative of the current REBOL/View window
size.
'time - the offset of the mouse at the moment the event is sent.
'resize - the offset of the mouse as the window is being resized. Resize
events are sent every as the window is being resized.
/key Returns the ASCII character relative to the event. With 'key events, this
returns the character pressed that triggered the event. The only exceptions
are the arrow keys Up, Down, Left, Right, and the End and Home keys. These key
events are handled internally by REBOL for changing the caret position in edit
windows. These key events return word representations. The word
representations for the Up, Down, Left, Right, End and Home keys are 'up,
'down, 'left, 'right, 'end or 'home, respectively.
For the mouse up and down events as well as 'time , 'resize and 'move, the
character returned is always #"^@", which is represented in REBOL as a null
character.
/control Returns a logic value, true or false, depending on whether the
control key is pressed when the event is sent. This works with the mouse up
and down events as well as 'move, 'key, 'resize and 'time.
/shift Returns a logic value, true or false, depending on whether the shift
key is pressed when the event is sent. This works with the mouse up and down
events as well as 'move, 'key, 'resize and 'time.
/time Returns an integer representing a unique time index for the event.
/face Returns the top-level face object of the window that was active when the
event occurred.
---
Ciao
Romano