Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Useful function click-face

 [1/7] from: arolls:idatam:au at: 11-Jan-2002 19:44


Here is a little function some people might find handy. (I get the vague feeling I saw someone else using a function like this already). click-face: func [face][face/feel/engage face 'down none] ; simple example view layout [ chk: check text "click me" [click-face chk] ] ; more complicated view center-face layout [ across chk: check pad 0x-3 label "click me" [click-face chk] return rad1: radio pad 0x-2 label "option 1" [click-face rad1] return rad2: radio pad 0x-2 label "option 2" [click-face rad2] ] Notice the use of pad to line up the labels better with the checks and radios. You could probably use click-face in a variety of situations on different types of gadgets. Anton.

 [2/7] from: cyphre:seznam:cz at: 11-Jan-2002 10:52


Hi Anton, Nice trick ;) With this method you can generate also custom 'action or 'event calls. Very usefull! regards, Cyphre

 [3/7] from: rebol665:ifrance at: 11-Jan-2002 11:52


Hi, I needed that too. It's a lot better to click on the text to change a checkbox. A good FAQ too. Thanks Anton ----- Original Message ----- From: "Cyphre" <[cyphre--seznam--cz]> To: <[rebol-list--rebol--com]> Sent: Friday, January 11, 2002 10:52 AM Subject: [REBOL] Re: Useful function click-face Hi Anton, Nice trick ;) With this method you can generate also custom 'action or 'event calls. Very usefull! regards, Cyphre

 [4/7] from: arolls:idatam:au at: 11-Jan-2002 22:11


I forget the situation, but sometimes buttons or some other style get stuck in the down position. It could then be useful to have release-face: func [face][face/feel/engage face 'up none] Then you can reset them easily. Anton.

 [5/7] from: jason:cunliffe:verizon at: 11-Jan-2002 7:56


> click-face: func [face][face/feel/engage face 'down none] > ; simple example
<<quoted lines omitted: 8>>
> rad2: radio pad 0x-2 label "option 2" [click-face rad2] > ]
very nice. Is there any way to have the mouse cursor also change on rollover, like to a finger or something as in HTML hyperlink? thanks ./Jason

 [6/7] from: petr:krenzelok:trz:cz at: 11-Jan-2002 19:17


Jason Cunliffe wrote:
>>click-face: func [face][face/feel/engage face 'down none] >>
<<quoted lines omitted: 14>>
>Is there any way to have the mouse cursor also change on rollover, like to a >finger or something as in HTML hyperlink?
Rebol doesn't support mouse cursor change. I think that it is not possible to introduce truly multiplatform solution here, but maybe at least partly. I suggested it several times already and RT folks told me that something like that is planned. One of my suggestion was at least capability of hiding/replacing mouse cursor by set of two nested faces - one holding the whole image - e.g. hand, inner one representing sensing area, e.g. finger .... Let's see what future will bring, but if RT wants Rebol to be used by kiosk systems, they should probably allow us to hide/change/replace mouse pointer .... -pekr-

 [7/7] from: greggirwin::mindspring::com at: 11-Jan-2002 12:27


Hi Jason, << Is there any way to have the mouse cursor also change on rollover, like to a finger or something as in HTML hyperlink? >> No mouse cursor support AFAIK. It would probably be hard to make cross platform. --Gregg

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted