<?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: Create Point on screen - Trigger mousedown via form in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610660#M16362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I still have some doubts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Create a tool that allows the user to click the map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Earlier I was using 9.3 there I used to create a UI Tool control for such purposes. Now that I am using version 10,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not really being able to find / create a tool that would allow the user to click the map !! So basically, the main problem I am facing is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"clicking on screen/map" since I cant find UI Tool control or something similar to that in version 10.&lt;/SPAN&gt;&lt;BR /&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>Tue, 21 Feb 2012 00:11:27 GMT</pubDate>
    <dc:creator>PriyankaMehta</dc:creator>
    <dc:date>2012-02-21T00:11:27Z</dc:date>
    <item>
      <title>Create Point on screen - Trigger mousedown via form</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610658#M16360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I have a add in&amp;nbsp; where a button calls a form which has various buttons and work through onClick event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create one more button on this form that can create a point by clicking mouse button on screen and also retrieve its XY coordinate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&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:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610658#M16360</guid>
      <dc:creator>PriyankaMehta</dc:creator>
      <dc:date>2012-02-20T09:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point on screen - Trigger mousedown via form</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610659#M16361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create a tool that allows the user to click the map.&amp;nbsp; In the button click event on your form, get a reference to this tool from IDocument::CommandBars and set it to be the current tool.&amp;nbsp; When implementing your tool, create a custom event called OnPointClicked or something like that.&amp;nbsp; Create a custom event arguments class that contains an IPoint reference as one of its properties.&amp;nbsp; Your custom event should use this custom arguments class for its arguments.&amp;nbsp; In the custom tool's MouseDown event, create a new instance of the custom arguments class, set the point property to be the point clicked and raise the event.&amp;nbsp; In the button click event on your form, register for this event before setting the custom tool to be the current tool.&amp;nbsp; Wire the event to a method on your form that will do whatever you need to do with the point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 12:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610659#M16361</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-02-20T12:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point on screen - Trigger mousedown via form</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610660#M16362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I still have some doubts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Create a tool that allows the user to click the map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Earlier I was using 9.3 there I used to create a UI Tool control for such purposes. Now that I am using version 10,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not really being able to find / create a tool that would allow the user to click the map !! So basically, the main problem I am facing is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"clicking on screen/map" since I cant find UI Tool control or something similar to that in version 10.&lt;/SPAN&gt;&lt;BR /&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>Tue, 21 Feb 2012 00:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610660#M16362</guid>
      <dc:creator>PriyankaMehta</dc:creator>
      <dc:date>2012-02-21T00:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point on screen - Trigger mousedown via form</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610661#M16363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add-ins can be commands or tools so you just need to create an add-in of the correct type (tool) to use from the button on your form.&amp;nbsp; I'm not sure how you get references to add-ins through code (I don't work regularly with ArcGIS 10) so using an add-in for the tool may not be the best or easiest choice.&amp;nbsp; You can always create commands and tools by implementing the ICommand and ITool interfaces.&amp;nbsp; If you do this then you will need to register these classes during deployment whereas you wouldn't if you create add-ins.&amp;nbsp; That may or may not be a concern for you but just wanted to mention it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 12:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-point-on-screen-trigger-mousedown-via-form/m-p/610661#M16363</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-02-21T12:19:11Z</dc:date>
    </item>
  </channel>
</rss>

