Author Topic: Using HotKeys with a PaletteSet  (Read 2460 times)

0 Members and 1 Guest are viewing this topic.

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
Using HotKeys with a PaletteSet
« on: August 23, 2013, 06:40:48 PM »
Attached is a VS2010 C# project with a Usercontrol which is used on a PaletteSet. I'm trying to get a hotkey to click a button on the Usercontrol while the command is in the middle of waiting for the user to get an entity. For the test code here all I am doing is creating the basic objects and have the hotkey setup to display a MessageBox. Everything appears to work except for the hotkey part. I can't use the UserControl's Keypress since the palette & control do not have focus.

Anyone have any ideas on how to get this working? This is a continuation of a thread I originally started on the Autodesk .NET forum, but it has had no responses.

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
Re: Using HotKeys with a PaletteSet
« Reply #1 on: August 24, 2013, 03:17:18 PM »
Well that was easy, although I could've sworn I had tried it initially. By changing the object from the paletteset to the usercontrol when passing the Handle to the constructor it now works as desired.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Using HotKeys with a PaletteSet
« Reply #2 on: August 27, 2013, 06:39:52 AM »
This is cool. Thanks Jeff!