FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mouse clicks events on a DrawingArea

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Mon Mar 10, 2008 6:14 pm    Post subject: Mouse clicks events on a DrawingArea Reply with quote

Hi,

as the title says, I need to call a function on every mouse click on a DrawingArea
along with the coordinates.

I found some C code but don't know how to translate it to D:

http://mail.gnome.org/archives/gtk-list/2002-July/msg00377.html
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Mon Mar 10, 2008 7:16 pm    Post subject: Re: Mouse clicks events on a DrawingArea Reply with quote

mandel wrote:
Hi,

as the title says, I need to call a function on every mouse click on a DrawingArea
along with the coordinates.

I found some C code but don't know how to translate it to D:

http://mail.gnome.org/archives/gtk-list/2002-July/msg00377.html


That's why I built gtkDTests check here:
http://www.dsource.org/projects/gtkd/browser/trunk/demos/gtkD/TestDrawingArea.d#L198

Ant
Back to top
View user's profile Send private message
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Mon Mar 10, 2008 10:42 pm    Post subject: Reply with quote

great, works! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group