Hello Matt,<br><br>Thanks a lot for your answer... that was it!<br>Regards,<br><br>Hugo<br><br><div class="gmail_quote">On Tue, Oct 12, 2010 at 2:43 AM, Matt Priour <span dir="ltr"><<a href="mailto:mpriour@kestrelcomputer.com">mpriour@kestrelcomputer.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" name="Compose message area">
<div><font size="2" face="Arial">Use a GeoExt.Action. Configure it with the control
you want it to activate.</font></div>
<div><font size="2" face="Arial">do not add the control to the map first, the
GeoExt.Action will take care of that for you</font></div>
<div style="font: 10pt Tahoma;"><font face="Arial"></font> </div>
<div style="font: 10pt Tahoma;"><font face="Arial">Matt Priour</font></div>
<div style="font: 10pt Tahoma;"><font face="Arial">Kestrel Computer
Consulting</font></div>
<div style="font: 10pt Tahoma;">
<div><br></div>
<div style="background: none repeat scroll 0% 0% rgb(245, 245, 245);">
<div><b>From:</b> <a title="hfpmartins@gmail.com" href="mailto:hfpmartins@gmail.com" target="_blank">Hugo</a> </div>
<div><b>Sent:</b> Monday, October 11, 2010 7:20 PM</div>
<div><b>To:</b> <a title="users@geoext.org" href="mailto:users@geoext.org" target="_blank">users@geoext.org</a> </div>
<div><b>Subject:</b> [Users] Associate control with a button</div></div></div><div><div></div><div class="h5">
<div><br></div>Hello all,<br><br>I have a mappanel with a top toolbar. In this
toolbar i have added a button but however i'm not able to associate it with the
appropriate openlayers control. For instance, how should i call the control
ZoomToMaxExtent to a Ext.Button???<br><br>Thanks in
advance.<br>Regards,<br><br>Hugo<br>
</div></div><p>
</p><hr>
<p></p>_______________________________________________<br>Users mailing
list<br><a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Hugo Martins<br>FMV-UTL<br>CIISA-Epidemiologia e Saúde Pública Veterinária<br>Av. da Universidade Técnica<br>1300-477 Lisboa<br>N 38°42'49.54", W 9°11'43.42"<br>