Re: Mouse position question

Paul <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Organization Home
Message-ID <[email protected]>
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!

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iEYEABECAAYFAksvlagACgkQaomOUCNPh0LytQCghIHVcMdTyci9bOv4wEAdpjWr
88AAnAjQdn5pQPXHxajEn4K1tVKamTN5
=0nJs
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.