<?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: Spark textArea context menu not working in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spark-textarea-context-menu-not-working/m-p/434016#M10115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's some sample code from the gallery that I've tweaked to give an example of the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="MapClick - click map to get current location"&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.MapMouseEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.MapPoint;
&amp;nbsp;&amp;nbsp; import com.esri.ags.utils.WebMercatorUtil;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import spark.components.TextArea;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function onMapClick(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var latlong:MapPoint = WebMercatorUtil.webMercatorToGeographic(event.mapPoint) as MapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.label = "You clicked at ";
&amp;nbsp;&amp;nbsp;&amp;nbsp; var textArea:TextArea = new TextArea();
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.content = textArea;
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.text = "Lat/Long is: " + latlong.y.toFixed(6)+ " / " + latlong.x.toFixed(6);
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.contextMenu.hideBuiltInItems();
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.contextMenu.clipboardMenu = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.selectable = true
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.editable = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.mouseEnabled = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.show(event.mapPoint); // "Show the click"
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 &amp;lt;esri:Map id="myMap"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapClick="onMapClick(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scale="50000000"&amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;
&amp;lt;/s:Application&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you click on the map, you aren't able to copy the text in the textArea window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a Flex bug? an API bug?&amp;nbsp; Neither?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:27:51 GMT</pubDate>
    <dc:creator>JasonLevine</dc:creator>
    <dc:date>2021-12-11T19:27:51Z</dc:date>
    <item>
      <title>Spark textArea context menu not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spark-textarea-context-menu-not-working/m-p/434015#M10114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have an identify tool in my map set up so that when a use clicks a polygon, an infoWindow appears containing a spark textArea (not mx textArea) that contains the information for that polygon.&amp;nbsp; The problem I'm having is that none of the context menu tools work and are grayed out (eg: copy, select all etc... see image below). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that this is a bug if you have a textArea in a panel :&lt;/SPAN&gt;&lt;A href="http://kb.yworks.com/article498.html"&gt;http://kb.yworks.com/article498.html&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How would I implement this for the infoWindow so that I can select and copy my text?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 16:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/spark-textarea-context-menu-not-working/m-p/434015#M10114</guid>
      <dc:creator>JasonLevine</dc:creator>
      <dc:date>2011-01-14T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spark textArea context menu not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spark-textarea-context-menu-not-working/m-p/434016#M10115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's some sample code from the gallery that I've tweaked to give an example of the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="MapClick - click map to get current location"&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.MapMouseEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.MapPoint;
&amp;nbsp;&amp;nbsp; import com.esri.ags.utils.WebMercatorUtil;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import spark.components.TextArea;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function onMapClick(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var latlong:MapPoint = WebMercatorUtil.webMercatorToGeographic(event.mapPoint) as MapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.label = "You clicked at ";
&amp;nbsp;&amp;nbsp;&amp;nbsp; var textArea:TextArea = new TextArea();
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.content = textArea;
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.text = "Lat/Long is: " + latlong.y.toFixed(6)+ " / " + latlong.x.toFixed(6);
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.contextMenu.hideBuiltInItems();
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.contextMenu.clipboardMenu = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.selectable = true
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.editable = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; textArea.mouseEnabled = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.show(event.mapPoint); // "Show the click"
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 &amp;lt;esri:Map id="myMap"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapClick="onMapClick(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scale="50000000"&amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;
&amp;lt;/s:Application&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you click on the map, you aren't able to copy the text in the textArea window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a Flex bug? an API bug?&amp;nbsp; Neither?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:27:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/spark-textarea-context-menu-not-working/m-p/434016#M10115</guid>
      <dc:creator>JasonLevine</dc:creator>
      <dc:date>2021-12-11T19:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spark textArea context menu not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spark-textarea-context-menu-not-working/m-p/434017#M10116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No suggestions with this?&amp;nbsp; If not, is there another way I can create hyperlinks in a infoWindow where I can also select/copy text?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 16:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/spark-textarea-context-menu-not-working/m-p/434017#M10116</guid>
      <dc:creator>JasonLevine</dc:creator>
      <dc:date>2011-01-25T16:38:05Z</dc:date>
    </item>
  </channel>
</rss>

