Hello list,
I trying to register a "mousedown" event to an action button but it doesn't
work with the following code:
action = new GeoExt.Action({
control: new OpenLayers.Control({eventListeners: {"mousedown":
this.handleMousedown}}),
tooltip: 'Info',
map: map,
iconCls: 'drawpolygon',
toggleGroup: 'map'
});
action.control.events.on({
"mousedown": handleMousedown
});
actions.push(action);
Any help would be appreciatte.
Thanks
Antoni Vidal
Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya
<http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/>
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users