making icons active

If I display a icon with d.icons how do I make this icon active so
that a user can click with the mouse and retrieve information about
that particular icon or to write some additional text beside the
icon. I guess that you have to work with some extra image behind
to keep track of all icons that are on the screen. My question is
if someone has done something simular and if you are willing to
share some ideas or scripts.

Lars

Lars Schylberg Email: larss@fmi.kth.se
Dept. of Geodesy and Photogrammetry
Royal Institute of Technology (KTH) Tel. +46 8 790 86 33
S-100 44 STOCKHOLM, SWEDEN Fax. +46 8 790 66 10