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

[bug?] engage away action

 [1/4] from: rebol-list2:seznam:cz at: 25-Jul-2004 22:11


Hello rebolist, just want to ask you if this is bug or not: view layout [ b: box 100x100 100.100.100 with [ feel: make face/feel [ engage: func [face action event][probe action] ] pane: make face [size: 50x50 color: 200.0.0 feel: none] ] ] The red box is part of gray box and should be without any feel. But when I click into gray box and drag mouse over red box, I receive 'away action in gray box. I think I should receive this action only when I leave the gray box not when I drag over part of this face:( Hope it's clear what I need. -- Best regards, rebOldes -----------------[ http://oldes.multimedia.cz/ ]

 [2/4] from: rotenca:telvia:it at: 26-Jul-2004 1:13


Hi Oldes,
> The red box is part of gray box and should be without any feel. But > when I click into gray box and drag mouse over red box, I receive > 'away action in gray box. I think I should receive this action only > when I leave the gray box not when I drag over part of this face:(
Yes, I think it is a bug. Happen also this: if you click into red box and drag mouse over gray box, the gray box receives the 'away action, and the mouse is exactly over the gray box! There is already in the tracker a bug or two about over/away: you should check them. --- Ciao Romano

 [3/4] from: antonr:lexicon at: 26-Jul-2004 19:53


Yep, as Romano wrote, there are definitely a few issues here which will need sorting out. I've posted to the bug tracker on this topic myself (see #112). Anton.

 [4/4] from: moliad::aei::ca at: 26-Jul-2004 23:19


this is a bug. it seems that the mouse press event and drag event do not share the same idea as to what is the top-most face. down effectively sees the ui without red face, while the drag mechanism memorises the top-most face with or without feel. but because the event handler is set to none for the red face, the event is still being sent to the gray box... but with an event generated from the red box's position. The reason this is a bug, is that if you execute the following: view layout [ b: box "Grey" 100x100 100.100.100 with [ feel: make face/feel [ engage: func [face action event][print "" probe action probe face/text probe event/offset] ] pane: make face [size: 50x50 color: 200.0.0 none text: "Red" offset: 10x10] ] edge [color: black size: 10x10 ] ] you will notice that by pressing in the region where there is a red box and going beyond it to its left, the mouse position is negative, although the grey box receiving the events, and the mouse is clearly over it! moral of the story. Don't put face/feel to none ;-) -MAx