[REBOL] Re: Mouse buttons
From: carl:cybercraft at: 12-Jan-2003 17:39
On 12-Jan-03, Andrew Martin wrote:
> Carl Read wrote:
>> As far as I know, REBOL doesn't by default use more than one mouse
>> button for anything, though there's support for a second button.
>>> view layout [
> [ button "Click me!" [print "Left button!"] [print "Right button!"]
> [ ]
> Right button!
> Right button!
> Left button!
> Left button!
> Left button!
> Right button!
> Left button!
> Right button!
> Left button!
> Right button!
> Right button!
> Left button!
> Right button!
> Left and right mouse buttons seem to work in my Rebol/View.
That's not quite what I meant, that equating to my "though there's
support for a second button".
What I meant was that none of the default styles use the right-button
to do something other than what the left button does, say to allow
for multiple selections in a text-list.
That said, I've remembered it's used in the desktop to get info about
icons...
But anyway, the argument in that post was that the user should decide
what the right button does. For instance, there's support in View
for a help text with every style. The user may prefer to see that
when they press the right button and to go away when they release it,
instead of it automatically appearing every time they happen to leave
the pointer over any given style for a few seconds.
Maybe what the right button does should be a user-option in skins?
--
Carl Read