<?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: Making the Static Legend widget moveable in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/making-the-static-legend-widget-moveable/m-p/668432#M15048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I copied the viewer:WidgetTemplate section from the HelloWorld sample widget and pasted it in the StaticImageWidget.mxml below the line &amp;lt;/fx:Script&amp;gt;. Then I deleted the label section from that and moved the mx:VBox tag into the new WidgetTemplate configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following is how the end of my StaticImageWidget.mxml looks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Script&amp;gt;

 &amp;lt;viewer:WidgetTemplate id="showLegend"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="300"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height="490"&amp;gt;
&amp;nbsp; &amp;lt;viewer:layout&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:VerticalLayout horizontalAlign="center"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; verticalAlign="middle"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingTop="2"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingLeft="2"/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:layout&amp;gt;

&amp;nbsp; &amp;lt;mx:VBox width="100%" height="100%"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;mx:Image id="img"/&amp;gt;
&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;
 &amp;lt;/viewer:WidgetTemplate&amp;gt;

&amp;lt;/viewer:BaseWidget&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:15:00 GMT</pubDate>
    <dc:creator>MichaelSmith2</dc:creator>
    <dc:date>2021-12-12T04:15:00Z</dc:date>
    <item>
      <title>Making the Static Legend widget moveable</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/making-the-static-legend-widget-moveable/m-p/668431#M15047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Static legend sample shows how to embed a legend as an image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is required in order to make this legend moveable? That is, the legend can be moved around on the screen and opened/closed, like other widgets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 04:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/making-the-static-legend-widget-moveable/m-p/668431#M15047</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2010-08-11T04:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Making the Static Legend widget moveable</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/making-the-static-legend-widget-moveable/m-p/668432#M15048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I copied the viewer:WidgetTemplate section from the HelloWorld sample widget and pasted it in the StaticImageWidget.mxml below the line &amp;lt;/fx:Script&amp;gt;. Then I deleted the label section from that and moved the mx:VBox tag into the new WidgetTemplate configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following is how the end of my StaticImageWidget.mxml looks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Script&amp;gt;

 &amp;lt;viewer:WidgetTemplate id="showLegend"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="300"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height="490"&amp;gt;
&amp;nbsp; &amp;lt;viewer:layout&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:VerticalLayout horizontalAlign="center"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; verticalAlign="middle"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingTop="2"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingLeft="2"/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:layout&amp;gt;

&amp;nbsp; &amp;lt;mx:VBox width="100%" height="100%"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;mx:Image id="img"/&amp;gt;
&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;
 &amp;lt;/viewer:WidgetTemplate&amp;gt;

&amp;lt;/viewer:BaseWidget&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:15:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/making-the-static-legend-widget-moveable/m-p/668432#M15048</guid>
      <dc:creator>MichaelSmith2</dc:creator>
      <dc:date>2021-12-12T04:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Making the Static Legend widget moveable</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/making-the-static-legend-widget-moveable/m-p/668433#M15049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for this tip, it worked great!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 16:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/making-the-static-legend-widget-moveable/m-p/668433#M15049</guid>
      <dc:creator>CaryChadwick</dc:creator>
      <dc:date>2010-12-03T16:37:24Z</dc:date>
    </item>
  </channel>
</rss>

