Thanks for the reference but i think what i need is to know how to &quot;invoke&quot; a control programatically.<br><br>Any ideas on that?<br><br><div class="gmail_quote">On Tue, Apr 6, 2010 at 12:22 PM,  <span dir="ltr">&lt;<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>&gt;</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 class="im">Hi,<br>
<br>
if you look at GeoExt actions you can see a way to do this (i.e. the<br>
concept could be usable):<br>
<br>
<a href="http://svn.geoext.org/core/trunk/geoext/lib/GeoExt/widgets/Action.js" target="_blank">http://svn.geoext.org/core/trunk/geoext/lib/GeoExt/widgets/Action.js</a><br>
<br>
Best regards,<br>
Bart<br>
<br>
</div><div><div></div><div class="h5">&gt; Hi,<br>
&gt; i&#39;m working on a DojoToolkit project and i would like to have the controls<br>
&gt; (like draw point, draw polyigon, etc) in a dojo-button.<br>
&gt; is there an &quot;easy&quot; way to achieve that?<br>
&gt;<br>
&gt; Also i was looking for a way to &quot;start an action programatically, that is,<br>
&gt; somebody clicks my button and programtically i start the draw point<br>
&gt; action.<br>
&gt;<br>
&gt; Thanks in advance for any ideas.<br>
&gt;<br>
&gt; --<br>
&gt; |-----------------------------------------------------------<br>
&gt; | <a href="http://www.astracanada.net" target="_blank">http://www.astracanada.net</a><br>
&gt; | <a href="http://acuriousanimal.orggeo.net" target="_blank">http://acuriousanimal.orggeo.net</a><br>
&gt; |-----------------------------------------------------------<br>
&gt; | <a href="http://acuriousanimal.blogspot.com" target="_blank">http://acuriousanimal.blogspot.com</a><br>
&gt; | <a href="http://theballoonproject.blogspot.com" target="_blank">http://theballoonproject.blogspot.com</a><br>
&gt; |-----------------------------------------------------------<br>
&gt; |  _      __<br>
&gt; | /_|    (  _  _/&#39;_ _<br>
&gt; |(  |.  __)(//)//(/(/()<br>
&gt; |                   _/<br>
&gt; |-----------------------------------------------------------<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>|-----------------------------------------------------------<br>| <a href="http://www.astracanada.net">http://www.astracanada.net</a><br>| <a href="http://acuriousanimal.orggeo.net">http://acuriousanimal.orggeo.net</a><br>
|-----------------------------------------------------------<br>| <a href="http://acuriousanimal.blogspot.com">http://acuriousanimal.blogspot.com</a><br>| <a href="http://theballoonproject.blogspot.com">http://theballoonproject.blogspot.com</a><br>
|-----------------------------------------------------------<br>|  _      __            <br>| /_|    (  _  _/&#39;_ _   <br>|(  |.  __)(//)//(/(/() <br>|                   _/    <br>|-----------------------------------------------------------<br>