[REBOL] Re: Right mouse button popup-menu for all my REBOl apps.
From: greggirwin:mindspring at: 1-Mar-2004 10:10
AT> I try many hacks to the code to not have the problem but
AT> without succes. How have you think about hide the do-events line ?
If your app is already handling events (e.g. by calling VIEW), you
don't need to call DO-EVENTS again. It can cause problems because you
then basically have two main event loops in your app. It's not like
using the DoEvents function in VB--for those who are familiar with
AT> The encapsulation in a context (get in context) is good when the value
AT> is complex and use other functions put in this context.
Right, I was wondering more about the syntax you used--using a
set-word with "get in context", rather than using SET in the context
show-menu: get in context [
show-menu: func [v] [print v]
set 'show-menu func [v] [print v]