Hi Graham,

Le 7 mars 05, à 09:04, graham samuel <[EMAIL PROTECTED]> a écrit :

Folks, I really should know this by now, but when a handler is called,
can its script identify its caller and if so how? I guess there is some
context description available but I don't know how to find it in the
docs. And while we're at it, what if the invocation of the handler is
the result of a "send", e.g.

send "mouseUp" to myMouseUpHandler

Can I tell from within the handler that it wasn't a true mouse click
that invoked it, and if so how?

Obviously the engine does know this information - it's just a question
of if and how it's made available to the developer.

In order to know if a button received a true mouse click or not, I add a boolean parameter when the message is sent by script:


send "mouseUp true" to btn "My Button"

and in the script of the button:

on mouseUp pFlag
  if pFlag then -- sent message
  else -- true mouse click

Amicalement,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
----------------------------------------------------------------
Web site                http://www.sosmartsoftware.com/
Email           [EMAIL PROTECTED]/
Phone           33 (0)1 43 31 77 62
Mobile          33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to