<?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 identify which button is clicked in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/identify-which-button-is-clicked/m-p/7549252#M7393</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to identify which button is clicked on Autocad toolbar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BOOL filterMouse(MSG *pMsg)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if( pMsg-&amp;gt;message == WM_LBUTTONDOWN )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // pMsg-&amp;gt; ?: any way to know which button got clicked;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //or which piece of information to use to identify the button.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // suppose "_line" button is clicked, i need to know "line" is getting called&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;or any other event-handler/reactor in which the information is captured&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2017 11:42:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-16T11:42:09Z</dc:date>
    <item>
      <title>identify which button is clicked</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/identify-which-button-is-clicked/m-p/7549252#M7393</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to identify which button is clicked on Autocad toolbar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BOOL filterMouse(MSG *pMsg)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if( pMsg-&amp;gt;message == WM_LBUTTONDOWN )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // pMsg-&amp;gt; ?: any way to know which button got clicked;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //or which piece of information to use to identify the button.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // suppose "_line" button is clicked, i need to know "line" is getting called&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;or any other event-handler/reactor in which the information is captured&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:42:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/identify-which-button-is-clicked/m-p/7549252#M7393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-16T11:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: identify which button is clicked</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/identify-which-button-is-clicked/m-p/7555200#M7394</link>
      <description>&lt;P&gt;Why is this necessary? Maybe there is another option? In AutoCAD API, there is no such method.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2017 14:10:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/identify-which-button-is-clicked/m-p/7555200#M7394</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-11-18T14:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: identify which button is clicked</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/identify-which-button-is-clicked/m-p/7578605#M7395</link>
      <description>&lt;P&gt;You can implement an &lt;FONT face="courier new,courier"&gt;AcEditorReactor&lt;/FONT&gt;-derived reactor and overwrite&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; virtual void commandWillStart(const TCHAR * cmdStr);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If you don't need a reactor, you can also query the name of the current command from the AutoCAD variable CMDNAMES with &lt;FONT face="courier new,courier"&gt;acedGetVar(_T("CMDNAMES"), &amp;amp;rb).&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 14:25:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/identify-which-button-is-clicked/m-p/7578605#M7395</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-11-28T14:25:33Z</dc:date>
    </item>
  </channel>
</rss>

