AW: why does my popup menu works only in a function call?

Tiemo Hollmann TB toolbook at kestner.de
Wed May 9 12:25:49 EDT 2007


Thanks Ken, I'll give it a try.


> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Ken Ray
> Gesendet: Mittwoch, 9. Mai 2007 18:06
> An: How to use Revolution
> Betreff: Re: why does my popup menu works only in a function call?
> 
> > I would like to understand, what the difference is and what my fault is
> why
> > the second approach doesn't work.
> 
> Well, I don't know why the app freezes, but if you are calling a
> handler from within another handler, you don't need to use "send" if
> it's in the message passing hierarchy (since "send" is intended for
> sending a message *to* a specific object, and you didn't provide one).
> 
> So for example, if your "mausMenue" handler was in the same object as
> the mouseDown, or in the card script of the card that had the
> "mouseDown" trap, or was in its stack script or in any libary you had
> put into use, you could simply use this mouseDown handler:
> 
> on mouseDown
>   mausMenue
>   -- (other code here, if any)
> end mouseDown
> 
> and have the called handler be:
> 
> on mausMenue
>   popup stack "mausMenue"
> end mausMenue
> 
> HTH,
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list