GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MotionNotifyEvent quirk

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
othrayte



Joined: 08 Feb 2008
Posts: 2

PostPosted: Fri Feb 08, 2008 1:40 pm    Post subject: MotionNotifyEvent quirk Reply with quote

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

PostPosted: Wed Apr 16, 2008 4:07 pm    Post subject: Clarifying Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP