Re: Mouse position question
Petit Eric <[email protected]>
| Newsgroups | gmane.comp.gnome.winforms |
|---|---|
| Message-ID | <[email protected]> |
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 <[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 > > -- 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 _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list