[Mono-winforms-list] Mouse position question

Petit Eric surfzoid at gmail.com
Mon Dec 21 10:45:56 EST 2009


if after resizing the form, the picture stay 800*600(no dock.fill) and
have scroll bars, take the XY of the picture/click event rather the
form

2009/12/21 Paul <paul at all-the-johnsons.co.uk>:
> 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  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>



-- 
 Cordially.

Deploy your softwares for all platforms and finally update them in 3 clicks.
Try now the OpenSource MonoOSC tool
http://monoosc.sourceforge.net/
http://download.opensuse.org/repositories/home:/surfzoid/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu:/Mono/

 Small Eric Quotations of the days:
 ---------------------------------------------------------------------------
 I have no special talents. I am only passionately curious


More information about the Mono-winforms-list mailing list