Hi All,
How to get the id of the clicked oval control in this context ?
• All oval have a different angles and can have the same rect or intersect
A "mousecolor" way works if each oval controls has its own color.
Is there a way to get it with oval with the same color ?
All the best
Jean-Marc
get the clicked oval
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
get the clicked oval
- Attachments
-
- getClickedOval.livecode.zip
- (1.79 KiB) Downloaded 122 times
https://alternatic.ch
Re: get the clicked oval
Hi Jean-Marc,
sorry, don't get it!?
Can't you just check THE TARGET on mousedown?
Best
Klaus
sorry, don't get it!?
Can't you just check THE TARGET on mousedown?
Best
Klaus
Re: get the clicked oval
Hi Klaus,
Sorry, my english explanation is not clear
The target returns the name of the clicked oval
In this case it is possible that the layer of the only colored part of the oval is back and that is this oval I want catch
I use mousecolor to find the first oval with a backgroundcolor = the mousecolor.
Best
Jean-Marc
Sorry, my english explanation is not clear
The target returns the name of the clicked oval
In this case it is possible that the layer of the only colored part of the oval is back and that is this oval I want catch
I use mousecolor to find the first oval with a backgroundcolor = the mousecolor.
Best
Jean-Marc
https://alternatic.ch
Re: get the clicked oval (colored part)
Hi All,
My first explanation was bad. I hope this one is better.
How to get the id of the oval which has the colored part in this context ?
I use a color way and its work fine if each part of pie has its own color and not if there are two parts of pie with the same color.
I am sure there is a way to get it if two or more chart of pie have the same color.
What about a way like a function "pointToAngle" to know if the mouseloc is in the colored part of a graphic ?
Thank gain for your help
Jean-Marc
My first explanation was bad. I hope this one is better.
How to get the id of the oval which has the colored part in this context ?
I use a color way and its work fine if each part of pie has its own color and not if there are two parts of pie with the same color.
I am sure there is a way to get it if two or more chart of pie have the same color.
What about a way like a function "pointToAngle" to know if the mouseloc is in the colored part of a graphic ?
Thank gain for your help
Jean-Marc
- Attachments
-
- ownercoloredpart.livecode.zip
- (1.96 KiB) Downloaded 123 times
https://alternatic.ch