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!
It seems mouse events are not sent when the current tool is not "browse".
You can go back to browse tool from an other stack or substack.
Create a substack "stMyTools"
Create a btn "Polygon" with this script
jmburnod wrote:It seems mouse events are not sent when the current tool is not "browse".
They are sent by the engine, but the IDE traps them for editing use. You'll find them reliably sent in a standalone, and while developing you can let the IDE pass them by suspending the IDE when testing those script (Development->Suspend Development Tools).
Richard Gaskin LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
I tried mouseenter with one btn "browse" and one btn "polygon"
development tools suspended.
Only mouseenter with browse tool works for me (LC 7.06)
MouseDoubleDown in cd script works but creates a polygon before (if polygon is the currrent tool of course)
Jean-Marc
on mouseEnter
put the target
end mouseEnter
on mouseLeave
put the name of this cd
end mouseLeave
on mouseDoubleDown
choose browse tool
end mouseDoubleDown
With the edit tool chosen, move the cursor in and out of the button rect. When you double-click on the card, the browse tool is selected. OS10.9.5, LC 6.7.9.
This will only work with a graphic tool if the graphic is selected, which means the last one created. I cannot select an existing grc and then choose the graphic tool. That deselects it.
Create a new grc. Immediately move the cursor in and out of the selected control. The messages are sent.