<?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: HowTo Programatically Disable Popups in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345902#M2120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This property defaults to ???false??? and if set to ???true??? the FeatureLayer will display MapTips...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you're setting the value of the "PopupType" attribute of the "PopupProperties" object?&amp;nbsp; "PopupType" is an enumeration, so when you said it was defaulting to "false" that tells me you were most likely setting some other property, e.g. "ShowTips".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that setting PopupType to PopupLayerType.None hides on-click popups from appearing, at least for ServiceLayer objects, as we are using this approach in one of our own projects.&amp;nbsp; I haven't tried specifically with a FeatureLayer, but I would expect the functionality to be the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2012 14:08:31 GMT</pubDate>
    <dc:creator>ErinBrimhall</dc:creator>
    <dc:date>2012-10-04T14:08:31Z</dc:date>
    <item>
      <title>HowTo Programatically Disable Popups</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345898#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am creating a FeatureLayer and adding it thru the API. How do you turn off Popups thru the API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an option to "Don't display popup window" in the Layer Properties dialog after the layer is added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I need to do this for the user via the API as I am adding/removing many Feature Layers thru my Addin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 20:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345898#M2116</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-01T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Programatically Disable Popups</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345899#M2117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If there is no way to reliably detect "Visible" there are ways to use a couple of Events to infer Visibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Is true when the Addin is Created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private bool _isVisible = true; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Fires when the Addin is Hidden - But ONLY when it is hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void SilcObjectBrowser_VisibleChanged(object sender, EventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; //Even though the Addin is now hidden, this.Visible == true!!!&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; _isVisible = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Will only fire when the Addin is Visible&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void SilcObjectBrowser_Paint(object sender, PaintEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; _isVisible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Return the current state of _isVisible&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public bool IsVisible { get { return _isVisible; } }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a start. BUT I would actually like to be able to reliably detect when an Addin is *Active*. Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an Addin. I click the Button to create and show it: it's now Visible AND *Active*. I Dock it with the Content Window as a tab. So now I have my Addin and the Contents Window on the same Dock Control each having a separate tab. If I click the Contents Window tab, my Addin is not Visible (and the above code will detect this). BUT, it is *Active* and I need to know that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a straight forward way to detect *Active*? If not, is there a not so straight forward way, like using Events such as above?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 22:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345899#M2117</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-01T22:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Programatically Disable Popups</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345900#M2118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am creating a FeatureLayer and adding it thru the API. How do you turn off Popups thru the API?&lt;BR /&gt;&lt;BR /&gt;There is an option to "Don't display popup window" in the Layer Properties dialog after the layer is added.&lt;BR /&gt;But I need to do this for the user via the API as I am adding/removing many Feature Layers thru my Addin.&lt;BR /&gt;&lt;BR /&gt;Thanks much,&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried something like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;FeatureLayer.PopupProperties.PopupType = PopupLayerType.None;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 21:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345900#M2118</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2012-10-03T21:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Programatically Disable Popups</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345901#M2119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Brian,&lt;BR /&gt;&lt;BR /&gt;Have you tried something like this?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;FeatureLayer.PopupProperties.PopupType = PopupLayerType.None;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes Ebrim I tried that. This property defaults to �??false�?� and if set to �??true�?� the FeatureLayer will display MapTips. But these are totally different and work when the mouse hovers over a Feature as opposed to clicking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ironically, if I could not turn MapTips off it would be ok. But the Popups are a big problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried everything on the FeatureLayer Class I could think of including removing the entire PopupProperties itself. This just yielded an empty Popup, but it still displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a kludge of a workaround though. Since I can�??t access a Property to turn off Popups I force the Popup Closed after it opens. This is very clunky and a bit ugly, but it is better than requiring the user to close it on every map navigation click.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said this solution is clunky and I would love a way to turn off Popups thru API �?? either supported or unsupported &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for the suggestion though!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 22:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345901#M2119</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-03T22:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Programatically Disable Popups</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345902#M2120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This property defaults to ???false??? and if set to ???true??? the FeatureLayer will display MapTips...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you're setting the value of the "PopupType" attribute of the "PopupProperties" object?&amp;nbsp; "PopupType" is an enumeration, so when you said it was defaulting to "false" that tells me you were most likely setting some other property, e.g. "ShowTips".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that setting PopupType to PopupLayerType.None hides on-click popups from appearing, at least for ServiceLayer objects, as we are using this approach in one of our own projects.&amp;nbsp; I haven't tried specifically with a FeatureLayer, but I would expect the functionality to be the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345902#M2120</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2012-10-04T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Programatically Disable Popups</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345903#M2121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Erin, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My bad! That is exactly what I wanted. I was looking at the wrong Property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 16:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/howto-programatically-disable-popups/m-p/345903#M2121</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-04T16:45:01Z</dc:date>
    </item>
  </channel>
</rss>

