The card has a menubar created in the menu editor. I have a group of images I am turning into a toolbar, named as you see here... I am using this code to send to the various menus from the messagebox:
Code: Select all
if the short name of the mouseControl is "Save As... File" then
send "menuPick Save As..." to button "File"
else
put the short name of the mouseControl into tmpName
set the itemDelimiter to space
put "send" && quote & "menuPick" && (item 1 of tmpName) & quote && "to button" && quote \
& (item 2 of tmpName) & quote && "of group" && quote & ("txtEdMenu") & quote into tmpCommand
answer tmpCommand
do tmpCommand
end if
Even though this is (so far) a single stack and card, even specifying the group as Jacque mentioned in the above linked thread produced no result.
Selecting the menuItem (by adding another else if) worked, but I'd rather know why this code works for everything else but 1 image/menu item.
I did test this all the way up to v9 on Windows, so I am pretty sure it is *not* a -
* Linux thing
* old Lc thing
I'll be looking over bug reports to see if it is a 'bug report' thang