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

Event transparent faces

 [1/8] from: oliva:david:seznam:cz at: 26-Aug-2002 13:41


Hello rebol-list, this mail should be adressed to the Feedback, but maybe some clever guy will know some way how to make event transparent face, so the button in this example will be working even bellow the red box: view layout [ button "my button" 100 [print now] at 80x0 box 20x50 effect [merge colorize 200.0.0] ]

 [2/8] from: cyphre:seznam:cz at: 27-Aug-2002 11:50


Hi Oldes, AFAIKView currently doesn't support event-transparent faces, but you can try this little workaround(not much tested but it looks it should work): view layout [ but: button "my button" 100 [print now] at 80x0 box 20x50 effect [merge colorize 200.0.0] with [ feel: make feel [ ovr?: none detect: func [f e][ ovr?: within? e/offset but/offset but/size either ovr? [but/feel/over but true e/offset][but/feel/over but false e/offset] e ] engage: func [f a e][ if all [e/type ovr?][ but/feel/engage but a e ] ] ] ] ] regards, Cyphre

 [3/8] from: g:santilli:tiscalinet:it at: 27-Aug-2002 12:19


Hi RebOldes, On Monday, August 26, 2002, 1:41:44 PM, you wrote: R> view layout [ R> button "my button" 100 [print now] R> at 80x0 box 20x50 effect [merge colorize 200.0.0] R> ] Well, a rough approximation would be: view layout [ btn: button "my button" 100 [print now] at 80x0 box 20x50 effect [merge colorize 200.0.0] feel [ engage: func [face action event] [ btn/feel/engage btn action event ] ] ] It has a number of problems, but should get you going. Also, of course the "right" solution would be for RT to provide event transparency in some way. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [4/8] from: anton:lexicon at: 27-Aug-2002 22:48


I want this too. Does anyone know if it has been posted as feedback request? If not, let's do it. Anton.

 [5/8] from: oliva:david:seznam:cz at: 30-Aug-2002 18:35


Hello Gabriele, Tuesday, August 27, 2002, 12:19:32 PM, you wrote: GS> Hi RebOldes, GS> On Monday, August 26, 2002, 1:41:44 PM, you wrote: R>> view layout [ R>> button "my button" 100 [print now] R>> at 80x0 box 20x50 effect [merge colorize 200.0.0] R>> ] GS> Well, a rough approximation would be: GS> view layout [ GS> btn: button "my button" 100 [print now] GS> at 80x0 box 20x50 effect [merge colorize 200.0.0] feel [ GS> engage: func [face action event] [ GS> btn/feel/engage btn action event GS> ] GS> ] GS> ] GS> It has a number of problems, but should get you going. Also, of GS> course the "right" solution would be for RT to provide event GS> transparency in some way. Hmm... it's working but does not solve the problem, because in the real usage I don't know what is bellow the box. I would expect that if I set feel: none in the box, it will acts as it is not present, but it kills the event-ray-process as well:( And except of that i would like to have possibility to decide if the face is event transparent or not - for example if the pixel of some image in the face is transparent, then not to stop the event-ray. We will have to wait for some RT solution and I think it is very important.

 [6/8] from: g:santilli:tiscalinet:it at: 31-Aug-2002 16:47


Hi RebOldes, On Friday, August 30, 2002, 6:35:31 PM, you wrote: R> And except of that i would like to have possibility to decide if the face R> is event transparent or not - for example if the pixel of some image in the face is R> transparent, then not to stop the event-ray. IIRC Holger once said that the alpha channel of a face will be applied to events too in the future... R> We will have to wait for some RT solution and I think it is very important. Indeed. Or, you could use DETECT and do the event processing by yourself, but I wonder how slow it would be... Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [7/8] from: greggirwin:mindspring at: 31-Aug-2002 12:41


<< IIRC Holger once said that the alpha channel of a face will be applied to events too in the future...>> A partial transparency causing 50% event firing? :) Fuzzy logic at it's best. Actually, I suppose that could probably work! Think about a very information-dense UI where transparency is adjusted dynamically. As you move around, different areas become "active" (less transparent). Hmmmm. --Gregg

 [8/8] from: g:santilli:tiscalinet:it at: 1-Sep-2002 12:09


Hi Gregg, On Saturday, August 31, 2002, 8:41:59 PM, you wrote: GI> A partial transparency causing 50% event firing? :) I assume Holger was referring to 100% transparent pixels. ;-) GI> Actually, I suppose that could probably work! Indeed, it could be made to do event "filters", but it would be nice to have them as a different concept from alpha channels. (I.e. look at how Photon (QNX GUI system) handles things...) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r