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

[REBOL] Re: [bug?] engage away action

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