[OpenLayers-Users] click and unclick events (button)
Mario Nuñez Jimenez
mario.nunez at atosresearch.eu
Fri Feb 5 05:24:47 EST 2010
Hello list,
I am trying to catch events in my buttons but I only see how to do click configuration behaviour and not how to do unclick configuration behaviour.
I mean When the buttons are clicked then their own event gets triggered. Also I have the handler option to define an additional action when the button is selected but I do not know how the catch and configure a unclick event on the buttons.
This is my source code:
toolbar.addControl(
new OpenLayers.Control.Button ({
trigger:OpenLayers.Function.bind(pointLayer.commit,pointLayer)}),
{ tooltip: 'Save points layer,
map: map,
iconCls: 'savefeatures',
toggleGroup: 'map',
handler: deactivateSelectionTool
});
I need to add a handler for the unclick event on the button to do a activateSelectionTool.
Any tip?
Thank you in advance for your appreciated help.
Kind regards.
Mario.
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100205/4d877081/attachment.html
More information about the Users
mailing list