<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Yes, it's possible. You could create your own OpenLayers.Control
with a click handler like the one in this example [1] and add it
using a GeoExt.Action like in that example [2]. What the control
should do is completely up to you.<br>
<br>
HTH,<br>
<br>
Alexandre<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.html">http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.html</a><br>
[2] <a class="moz-txt-link-freetext" href="http://api.geoext.org/1.0/examples/toolbar.html">http://api.geoext.org/1.0/examples/toolbar.html</a><br>
<br>
<br>
On 11-06-13 11:58 AM, Paul james wrote:
<blockquote
cite="mid:BANLkTikdcPOFVxpgtpV2-obPjnz49L5zRg@mail.gmail.com"
type="cite">
<div>Hello...</div>
<div> </div>
<div>I have a GeoExt toolbar... I´d like to add a button that show
an ALERT window with Coordinate when the user click on map...</div>
<div> </div>
<div>Example: User select that custom tool on toolbar, click on
map and it shows the Alert "Lat : 30 Long 50"</div>
<div> </div>
<div>Is it possible?</div>
<div> </div>
<div>Thanks</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>