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

[REBOL] view bug (with feel attribute)

From: media::quazart::com at: 23-Oct-2001 13:07

Hi again, maybe some of you are aware... I just discovered that if you create your feel object for a face and include the functions in the wrong order, your event handling will be PURE CHAOS!!! anything. other than: make object! [ redraw: none detect: none over: none engage: none ] Just changing the order of the function completely breaks the event handling. It guess that the view handler calls the feel function with a static binding, always expecting the order of their inclusion. The documentation for the event handling (on RT How-to site) is misleading it states: "Any face can have a FEEL object with one or more of the above functions. This allows you to handle events from any type of graphical object, including images, text, boxes, or lines." It later SUGGESTS to clone the feel object... But I'd change that part of the text to you MUST CLONE the feel object. I hope someone can explain this to me or prove me wrong, I have the exact same behaviour in more than one source! -Max