Re: Image Map




Yuji Shinozaki writes:
>I am new to gtk and gtk-list so bear with me.  Does someone have
>example code on how one might implement an imagemap (you know, click
>on an image and handle the event according to the coordinates)? 
>Or at least a clue on how to go about doing this?

Sure, take a look at how the GIMP pops up menus over imagemaps -- you
just want to take a different action in that case.  Search for
gtk_menu_popup in the GIMP source and you'll see how button events
are requested and dissected.

Have fun!

michaelkjohnson

"Magazines all too frequently lead to books and should be regarded by the
 prudent as the heavy petting of literature."            -- Fran Lebowitz




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