Message Definitions

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Message Definitions

Post by townsend » Fri May 20, 2011 10:21 pm

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?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7391
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Message Definitions

Post by jacque » Sun May 22, 2011 8:47 am

It sends the listed message to the object, just as the engine would. It isn't for writing scripts, it's for testing them.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: Message Definitions

Post by townsend » Tue May 24, 2011 9:31 pm

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

Post Reply