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!
Actually-- that menuPick message (event) is ideal for what I am trying to do.
I was going to ask you, is there any documentation or place, where I could have looked up,
"ALL messages available to Group objects?" Where I might have discovered this myself. Then I remembered the Message Watcher, under Development, on the Menu Bar.
I think Mark's solution (menuPick) is the more logical choice
"ALL messages available to Group objects?" Where I might have discovered this myself.
When you open the dictionary and select "group" in the left part under "objects" (expand if necessary) and than select "Type" for sorting you have all properties and messages concerning groups sorted. This works of course for all categories in the dictionary.
But actually you would not have found MenuPick since it is a message that is send by menus and is passed up the message path. Since the group is in the message path you can script for the menuPick message of all menus in that group.
I didn't think of that-- excellent point there Bernd.
And, sorting the entire Dictionary by Type gives you a list of all possible Messages.
(It's really not that long.) Which is a good resource to know about.
while we are at it. Sometimes I forget the property names of objects. Than I make up a stack with a button a field and the object type I am interested in. E.g. graphic
on mouseUp
put the properties of group "mygroup" into tArray
combine tArray by return and tab
filter tArray without empty
put tArray into fld "report"
end mouseUp
Yes-- of course-- this code, when placed in a button can collect ALL the properties of any object.
THEN using a Set Statement, any of those properties can be modified. (!!)
This thread turned out to be nice little lesson.
All these tips save time.