I can't quite seem to figure out how that works. (With both 5.5.3 and 6.0, I get the following ....)

If I set revMessageBoxRedirect to the long ID of a field, then the contents of the field get updated as though it had been the message box; i.e. the field is updated, but there is no "msgChanged" message sent. (Not received by a handler in the field, and not shown by Development / Watch Messages).

If I set revMessageBoxRedirect to the long ID of a button then the button does receive "msgChanged" messages - but there are no parameters passed.

Maybe I'm missing something - but the code I'm testing with is pretty simple

(in my Button script)
on mouseUp
   if revMessageBoxRedirect is empty then
      set revMessageBoxRedirect to the long ID of me
   else
      set revMessageBoxRedirect to empty
   end if
end mouseUp

on msgChanged p
   put "got" && paramcount() && p &CR after field "F"
end msgChanged

(or change "long ID of me" to "long ID of field "F"" to test the other case).

-- Alex.


On 06/05/2013 23:56, Richard Gaskin wrote:
Another option would be to use the revMessageBoxRedirect global property, and catch the executionContexts from your specified object:

<http://lists.runrev.com/pipermail/use-livecode/2012-October/179495.html>

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to