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

[rebol3 vid3 stylize] Why does this minimal STYLIZEd vid3 style break? And how to fix it?

 [1/3] from: christian:ensel:gmx at: 2-Feb-2008 20:15


Hello list, I know for sure I can write programs failing with lesser code, but why o why is
>> stylize [error: face [] [] [on-init: func [f s] [f/size: 100x100
f/gob: make gob! [size: 100x100 color: red]]]] view [error] breaking as soon you try to mouse-over the face? O.k., that why thing is fairly obvious, somewhere someone wants to access FACE/FEEL/ON-MOVE for a FACE = NONE! in the event chain, but what can I do to work around that? I haven't even managed to locate the failing code cited in the error message; any ideas, someone, on where to look for it? TIA, - Christian

 [2/3] from: christian:ensel:gmx at: 2-Feb-2008 22:54


(Note to self:) Finally, I've found the answer. The missing link was the up-link from the gob to it's parent face:
>> stylize [error: face [] [] [on-init: func [f s] [f/size: 100x100
f/gob: make gob! [data: f size: 100x100 color: red]]]] view [error] Man, that was a tough lesson ... - Christian Christian Ensel schrieb:

 [3/3] from: gregg::pointillistic::com at: 2-Feb-2008 15:47


CE> Man, that was a tough lesson ... Thanks for posting it Christian. You save people time, and I'm sure Gabriele will make note of it as well. -- Gregg