Re: GtkPixmap and location



Le Jeudi  9 Août 2001 11:25, Ronald Bultje a écrit :
> On Sat, 25 Aug 2001 20:29:35 Arno wrote:
> > I would like to know which is the position in pixel where I have clicked
> > in
> > my GtkPixmap. Is what somebody could say to me how to do that?
>
> You can have a signal listener for button_press_event signal, which carries
> the GdkEvent *event object... event->x and event->y carry the position of
> the mouseclick relative to the GdkWindow to which the pixmap is attached.
>
> Ronald

Ok, but i don't know how can i get the position x and y of the GtkPixmap ???

Arno
 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]