Re: Image maps?
| From: | James Cameron | Date: | Wed, 15 Jan 2003 05:46:26 +0000 |
| Subject: | Re: Image maps? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2911@lists.php.net to get a copy of this message | ||
I agree with Alan. Somehow capture the button down event over the image
such as using an event box or by asking for a button down event for the
image's widget.
In the event handler, look at the event's coordinates. It's a nice
structure; gives you all the stuff you need.
Then you'd have to figure out for yourself whether the coordinates
matched a particular area.
If you wrote something that took an imagemap in another format and used
it inside a PHP-GTK program, I'm sure the Wiki would benefit from it.
;-)
--
James Cameron mailto:quozl@us.netrek.org http://quozl.netrek.org/