[Mono-winforms-list] Mouse position question
Paul
paul at all-the-johnsons.co.uk
Mon Dec 21 10:35:04 EST 2009
Hi,
> I m not sure to completely understand your question, but did you look
> at screen bound ?
> yu should know, the position of the form on the screen and it size
> ....
I have a form with an image as a background image. It has a size of
800x600. If I click in the middle of the image, it returns x = 400, y =
300 which is fine. If I resize to 400 x 300, the middle becomes x = 200,
y = 150.
The thing is that I need to be to be able to click anywhere on the
screen and an event happen (say open another window), but for different
x and y positions, different things happen. If I rely on the x and y
return value, chances are it won't work either correctly or at all if
the window size isn't 800x600.
I'm trying to find a way so that it does work.
TTFN
Paul
--
Sie können mich aufreizen und wirklich heiß machen!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20091221/cfc4468b/attachment.bin
More information about the Mono-winforms-list
mailing list