I have to draw two circles in a box, first larger and second smaller inside the first. a) I have done this in the paint routine for the panel and it works is this the correct spot for drawing images like this? b) I have to know where a line drawn from inside the smaller circle to a mouse click (working) intersects with the outer circle (if it does) and if not the inner circle (if it does). Is there a magic process to work this out? Ta Ken
Hi Ken, as far as I know, there's no magic method to do this. you need do some calculation here. -Jonny On Jul 28, 11:48 pm, Ken Foskey wrote: > I have to draw two circles in a box, first larger and second smaller > inside the first. > > a) I have done this in the paint routine for the panel and it works is > this the correct spot for drawing images like this? > > b) I have to know where a line drawn from inside the smaller circle to a > mouse click (working) intersects with the outer circle (if it does) and > if not the inner circle (if it does). Is there a magic process to work > this out? > > Ta > Ken
This kind of magic is called math. I would try to search for circle line intersection in Google and it should return tons of links... Always try Google when you have to deal with "classic" calculations... -- Patrice "Ken Foskey" a écrit dans le message de groupe de discussion : 488dea42@dnews.tpgi.com.au... > > I have to draw two circles in a box, first larger and second smaller > inside the first. > > a) I have done this in the paint routine for the panel and it works is > this the correct spot for drawing images like this? > > b) I have to know where a line drawn from inside the smaller circle to a > mouse click (working) intersects with the outer circle (if it does) and > if not the inner circle (if it does). Is there a magic process to work > this out? > > Ta > Ken >