Option Menu to show menu item by code - Solved

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Option Menu to show menu item by code - Solved

Post by dunbarx » Tue Aug 02, 2016 8:26 pm

Interestingly, the line:

Code: Select all

click at the loc of btn "optionButton"
seems to be blocking, because if you do this:

Code: Select all

on mouseUp
   click at the loc of btn "yourOption"
   set the screenMouseLoc to aCalculationOfTheScreenMouseLocInRelationToTheOptionButton
end mouseUp
the mouse will not relocate until you have selected a menuItem. Those old threads on the forum had a kluge that did this, I think. I will try to find them before making a new kluge.

Craig

Edit.

Likely I misspoke. It isn't that the "click" line is blocking, but rather that an open MenuItem list is blocking. A selection must be made, or the mouse clicked somewhere else, to release that process.
Last edited by dunbarx on Wed Aug 03, 2016 5:35 pm, edited 1 time in total.


Post Reply