 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
othrayte
Joined: 08 Feb 2008 Posts: 2
|
Posted: Fri Feb 08, 2008 1:40 pm Post subject: MotionNotifyEvent quirk |
|
|
Hi I'm writing a program in Mono(c#) using GTK# and stetic.
I have managed to make an image drag-able by putting it in an event box inside a scrolled window, as I am writing it using monodevelop I used their designer to make the window and by attaching a MotionNotifyEvent to the eventbox and writing some (quite ugly) code made the cursor drag the image to the extents of the scrolled window.
This works well enough but now I want to know where the cursor is relative to the image, just like gimp shows when you open the pointer information tab. my problem is that this requires the event to be triggered after any movement over the image and the event currently only triggers when I hold down the left mouse button and drag.
Is this normal behavior for the motion notify event or is there possibly a problem in my code?
Any help is greatly appreciated. :D |
|
| Back to top |
|
 |
othrayte
Joined: 08 Feb 2008 Posts: 2
|
Posted: Wed Apr 16, 2008 4:07 pm Post subject: Clarifying |
|
|
To clarify, adding on to what I have said previously, I wish to display (in any form) the current position of the cursor above my image, just like GIMP does as I said previously. I simply want to know if this should be possible using gtk(sharp) and how it might be done.
Please help!! |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|