Re: Mouse Event coordinates

2009-09-26 Thread Huub Peters
Steve Cookson wrote: Hi Guys, I have a small piece of code which displays a bitmap, then when you click on the bitmap it should draw a circle round the point you clicked. It works OK, except that it always returns (0, 0) as the coordinates of the mouse, where-ever you click. Where am I goi

RE: Mouse Event coordinates

2009-09-26 Thread Steve Cookson
l.org Subject: Re: Mouse Event coordinates Steve Cookson wrote: > > > Hi Guys, > > I have a small piece of code which displays a bitmap, then when you click > on the bitmap it should draw a circle round the point you clicked. > > It works OK, except that it always returns

Mouse Event coordinates

2009-09-26 Thread Steve Cookson
Hi Guys, I have a small piece of code which displays a bitmap, then when you click on the bitmap it should draw a circle round the point you clicked. It works OK, except that it always returns (0, 0) as the coordinates of the mouse, where-ever you click. Where am I going wrong? Here is the code