Re: Button-release event
"Richard Warren" <[email protected]> Tue, 8 Apr 2003 16:55:02 +0100
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Organization | Primagraphics Ltd. |
| Message-ID | <00dd01c2fde7$373fdc80$3d00a8c0@primag> |
As nobody has pointed out a mistake in what I'm trying to do, I've created a new bug report for this. If anyone is interested, see http://bugzilla.gnome.org/show_bug.cgi?id=110271 for more details and a simple test case. Regards, Richard. ----- Original Message ----- > Hi all, > > I think I'm getting a difference in the notification of button-release > events between Linux and Win32 builds of my application. > > I have a drawing-area in which I use the button_press_event, > button_release_event and motion_notify_event events (to implement a zooming > feature by dragging a rubber-band rectangle over the area to zoom in on). > > Under linux, if I press down on the button, then accidentally drag to > outside of my drawing area before releasing the button, I still get the > button_release_event, regardless of where I release the button. > > Under windows, if I do the same thing then I don't get the > button_release_event if I let go of the mouse button when the cursor is over > a widget that can receive the focus (e.g. buttons, radio buttons etc.). If > I let go over a plain label or unused part of the application then I get the > event okay, but if I'm over a focus-able widget I don't get anything. > > So, am I doing something stupid? Should I expect this difference between > linux and windows? > > I'm using V2.2.0 on linux, and Tor's 2003-01-09 build (also V2.2.0 I think) > on windows. > > I'm happy to file a bug if this difference is not-expected, but I thought > I'd just run it past you all first in case it's my fault! > > Thanks in advance, > Richard Warren.