<?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: PaletteSet, use Keyboard when Editor has focus in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4377364#M48127</link>
    <description>&lt;P&gt;Well, I've adapted some HotKey code from &lt;A href="http://www.fluxbytes.com/csharp/how-to-register-a-global-hotkey-for-your-application-in-c/" target="_blank"&gt;HERE&lt;/A&gt;&amp;nbsp;that almost works. It was written for a Form whereas my form is actually a UserControl on a PaletteSet. So even though the HotKey is defined&lt;SPAN style="font-size: 12.87px; line-height: 17.55px;"&gt;, I used CTRL + S since I want to save something, when run that key combination does nothing (normally this would bring up the Save Drawing dialog). I think that this is due to the Palette vs Form and I cannot see how to get the WndProc event to fire with the PaletteSet. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 12.87px; line-height: 17.55px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 12.87px; line-height: 17.55px;"&gt;I will put together a small sample project, hopefully someone can lend a hand.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2013 19:06:44 GMT</pubDate>
    <dc:creator>Jeff_M</dc:creator>
    <dc:date>2013-08-22T19:06:44Z</dc:date>
    <item>
      <title>PaletteSet, use Keyboard when Editor has focus</title>
      <link>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4376106#M48126</link>
      <description>&lt;P&gt;OK, not sure if the Subject says it well, but what I have is a PaletteSet that is displayed during a command in order to show some data as well as containing options for the command. Once it is displayed I set the focus back to the Editor so the user can select objects. When the cursor moves over the Palette focus is automatically switched so the mouse can select the options thereon, then switches back to the Editor as the cursor moves off the Palette. This all works fine &amp;amp; dandy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am trying to do is allow the user to use the keyboard to 'press' buttons on the Palette form via a Hotkey approach. The entire time that the Editor has focus, the Editor.GetEntity() method is in use to allow the user to select an object.&lt;/P&gt;
&lt;P&gt;Can anyone point me in the right direction for such a task?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2013 04:03:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4376106#M48126</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2013-08-22T04:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: PaletteSet, use Keyboard when Editor has focus</title>
      <link>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4377364#M48127</link>
      <description>&lt;P&gt;Well, I've adapted some HotKey code from &lt;A href="http://www.fluxbytes.com/csharp/how-to-register-a-global-hotkey-for-your-application-in-c/" target="_blank"&gt;HERE&lt;/A&gt;&amp;nbsp;that almost works. It was written for a Form whereas my form is actually a UserControl on a PaletteSet. So even though the HotKey is defined&lt;SPAN style="font-size: 12.87px; line-height: 17.55px;"&gt;, I used CTRL + S since I want to save something, when run that key combination does nothing (normally this would bring up the Save Drawing dialog). I think that this is due to the Palette vs Form and I cannot see how to get the WndProc event to fire with the PaletteSet. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 12.87px; line-height: 17.55px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 12.87px; line-height: 17.55px;"&gt;I will put together a small sample project, hopefully someone can lend a hand.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2013 19:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4377364#M48127</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2013-08-22T19:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: PaletteSet, use Keyboard when Editor has focus</title>
      <link>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4378655#M48128</link>
      <description>&lt;P&gt;FWIW, Jeff -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand it, Civil 3D now 'owns' the Ctrl button for hotkeys, which is why &lt;STRONG&gt;&lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=10570.msg409779#msg409779"&gt;this&lt;/A&gt;&lt;/STRONG&gt; has never worked for any version of Civil 3D I've used, but will work for vanilla AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4378655#M48128</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-08-23T16:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: PaletteSet, use Keyboard when Editor has focus</title>
      <link>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4379002#M48129</link>
      <description>&lt;P&gt;&lt;EM&gt;That&lt;/EM&gt; program works for me in C3D2012, including the CTRL key combination.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 23:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4379002#M48129</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2013-08-23T23:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: PaletteSet, use Keyboard when Editor has focus</title>
      <link>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4379904#M48130</link>
      <description>&lt;P&gt;The solution turned out to be simple enough. Instead of using the PaletteSet.Handle to pass to the constructor I used the UserControl.Handle and all works as desired. I posted the sample project to theSwamp's .NET forum.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2013 16:48:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/paletteset-use-keyboard-when-editor-has-focus/m-p/4379904#M48130</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2013-08-25T16:48:26Z</dc:date>
    </item>
  </channel>
</rss>

