<?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: onclick event for add-in tool ? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327276#M8525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: KSigwart&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using the AddIn Tool, what you are looking for is the OnActivate() method.&amp;nbsp; It is essentially the same thing as the OnClick event within BaseTool or the ITool in previous versions.&amp;nbsp; When the Tool is selected in the toolbar it gets compressed and the OnActivate method is fired off.&amp;nbsp; Then when a new tool is selected, the tool is delselected and the deActivate method is fired off.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 13:48:08 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-05-25T13:48:08Z</dc:date>
    <item>
      <title>onclick event for add-in tool ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327274#M8523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to achive is to create a addin tool with both onclick and mousedown events.&amp;nbsp; When users click on the tool, a input box will popup, users enter a value then they click on the map to place that text on the position they want.&amp;nbsp; I could get the mousedown events fires ok but I can't seem to find the onclick event for a add-in tool.&amp;nbsp; I tried Protected Overrides Sub OnDoubleClick() nothing fires.&amp;nbsp; Thank you for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 19:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327274#M8523</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2011-01-21T19:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: onclick event for add-in tool ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327275#M8524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All,&lt;BR /&gt;What I'm trying to achive is to create a addin tool with both onclick and mousedown events.&amp;nbsp; When users click on the tool, a input box will popup, users enter a value then they click on the map to place that text on the position they want.&amp;nbsp; I could get the mousedown events fires ok but I can't seem to find the onclick event for a add-in tool.&amp;nbsp; I tried Protected Overrides Sub OnDoubleClick() nothing fires.&amp;nbsp; Thank you for your help.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use BaseTool..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 03:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327275#M8524</guid>
      <dc:creator>Venkata_RaoTammineni</dc:creator>
      <dc:date>2011-01-24T03:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: onclick event for add-in tool ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327276#M8525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: KSigwart&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using the AddIn Tool, what you are looking for is the OnActivate() method.&amp;nbsp; It is essentially the same thing as the OnClick event within BaseTool or the ITool in previous versions.&amp;nbsp; When the Tool is selected in the toolbar it gets compressed and the OnActivate method is fired off.&amp;nbsp; Then when a new tool is selected, the tool is delselected and the deActivate method is fired off.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 13:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327276#M8525</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-25T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: onclick event for add-in tool ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327277#M8526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's another way that I'm using in my add-in. I have a form (DrawFeature) containing buttons for different polygons the user can create on screen: buffered points, polygons, freehand polygons, and rectangles. I also have a tool (DrawTool) that is called when one of the buttons on that form is pushed. I'm using a global variable (DrawFeatureType) to pass what type of feature is being created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached the code since it's too long to post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 15:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327277#M8526</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2011-05-25T15:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: onclick event for add-in tool ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327278#M8527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: priyanka_mehta&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I was trying your code for draw point&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives error on select case line "Select Case Globals.DrawFeatureType"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any more reference that needs to be added to identify this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;another place is&amp;nbsp; m_DrawFeature.Visible = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what is m_DrawFeature referring to ? It is not declared in the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Moreover, what i am trying to do is simply trigger mouse down event through a button on form&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In detail, what I want to do is ... create a point on screen and grab its XY coordinate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On versions previous to 10, I used to do it via UI Tool control. I am really stuck with this thing here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Priyanka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 09:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/onclick-event-for-add-in-tool/m-p/327278#M8527</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-02-20T09:34:57Z</dc:date>
    </item>
  </channel>
</rss>

