Page 1 of 1

Message Definitions

Posted: Fri May 20, 2011 10:21 pm
by townsend
Just in case you're new here, Messages are LiveCode's equivalent of Events.

So I've got this DataGrid and I need to write some code for a Message?
Where are all the messages for the DataGride listed? Found it!

Right click on the DataGrid and look for an option called,
"Send Message". There they all are. Looks like there's about 100.

Question: Is there someplace where all the actions associated with
these Messages are are defined in detail? That would be helpful.

I'm trying to generate an event after a cell has been edited. I thought it
might be "closefield" or "exitfield" but neither of these worked.

Also: You would think that when clicking on a Message from the
Send Message list, it would populate the code with a simple stub like:

Code: Select all

on closefield

end closefield
But that didn't happen. It seems you have to enter the On...End structure
manually. No matter. But then... what does happen when you select a
Message off the Send Message list?

Re: Message Definitions

Posted: Sun May 22, 2011 8:47 am
by jacque
It sends the listed message to the object, just as the engine would. It isn't for writing scripts, it's for testing them.

Re: Message Definitions

Posted: Tue May 24, 2011 9:31 pm
by townsend
Thanks Jacque-- In case anyone else is having difficult with this:

Here's the DataGrid API:
http://lessons.runrev.com/spaces/lesson ... a-Grid-API

AND: I found this thread very helpful:
Capturing Messages in Realtime
http://forums.runrev.com/viewtopic.php?f=7&t=7699