<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Robert Scheitlin's Enhanced Draw Widget - Repeated Drawing? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/robert-scheitlin-s-enhanced-draw-widget-repeated/m-p/417779#M9786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I looked at the code and your solution looks good.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2011 12:31:23 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2011-06-21T12:31:23Z</dc:date>
    <item>
      <title>Robert Scheitlin's Enhanced Draw Widget - Repeated Drawing?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/robert-scheitlin-s-enhanced-draw-widget-repeated/m-p/417777#M9784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In an older version I was able to modify Roberts enhanced widget to repeat the last activated drawing tool.&amp;nbsp; So, a user could - for example: draw many rectangles until selecting another tool or clearing the drawing.&amp;nbsp; With the edit capabilities in this version - I was thinking of a check box for and EDIT MODE and DRAW MODE for the graphics.&amp;nbsp; It would really just deactivate repeated graphic drawing and clear the tool when checked is true.&amp;nbsp; Has anyone done this modification?&amp;nbsp; Or, better yet - Do you . . . Robert?&amp;nbsp; know the lines of code I should look at to make repeated graphic drawing work?&amp;nbsp; Robert - even if you can't respond - I very much appreciate your work.&amp;nbsp; thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW - I also had an "undo last graphic" button on the older draw widget.&amp;nbsp; But, I think I will make it so users can drag a graphic in edit mode to&amp;nbsp; "garbage can" to delete it (object in edit mode and mouse over icon).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 16:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/robert-scheitlin-s-enhanced-draw-widget-repeated/m-p/417777#M9784</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-06-16T16:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Robert Scheitlin's Enhanced Draw Widget - Repeated Drawing?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/robert-scheitlin-s-enhanced-draw-widget-repeated/m-p/417778#M9785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I made a hack that seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Declared:&amp;nbsp; private var lastSelectedDrawingIcon:Image;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I replaced the line after // apply glow with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (event == null &amp;amp;&amp;amp; repeatChkBox.selected) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; selectedDrawingIcon = lastSelectedDrawingIcon;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; selectedDrawingIcon = Image(event.currentTarget);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lastSelectedDrawingIcon = selectedDrawingIcon; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, I put this at the bottom of the map_drawEndHandler function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (repeatChkBox.selected) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; activateDrawTool(null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need a checkBox somewhere with a function to null the drawtool.&amp;nbsp; Any better ideas are welcome.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 13:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/robert-scheitlin-s-enhanced-draw-widget-repeated/m-p/417778#M9785</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-06-17T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Robert Scheitlin's Enhanced Draw Widget - Repeated Drawing?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/robert-scheitlin-s-enhanced-draw-widget-repeated/m-p/417779#M9786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I looked at the code and your solution looks good.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 12:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/robert-scheitlin-s-enhanced-draw-widget-repeated/m-p/417779#M9786</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-06-21T12:31:23Z</dc:date>
    </item>
  </channel>
</rss>

