GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Apr 17, 2014 3:46 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: MotionNotifyEvent quirk
PostPosted: Fri Feb 08, 2008 1:40 pm 
Offline

Joined: Fri Feb 08, 2008 1:19 pm
Posts: 2
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


Top
 Profile  
 
 Post subject: Clarifying
PostPosted: Wed Apr 16, 2008 4:07 pm 
Offline

Joined: Fri Feb 08, 2008 1:19 pm
Posts: 2
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!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group