PDA

View Full Version : MaxForms and Mapped Shortcut Keys


TimHawker
02-26-2012, 08:55 PM
Hi Guys,

I've been trying to figure out how to allow assigned keyboard shortcuts in 3ds max to work with a focused maxform window. When the maxform is focused and a shortcut is pressed, the keypress event fires in the maxform, but nothing is passed on to 3ds max to execute the assigned shortcut function/macro. (for example, pressing 6 for particle flow)

I guess this is intended behaviour, but is it possible to allow shortcut keys to pass through to max?

Thanks for any help.
Tim

Track
02-27-2012, 09:54 AM
Use System.Windows.Forms.Form

TimHawker
02-27-2012, 11:52 PM
Heh, as if it was that easy :banghead: Thanks for the help.

I've noticed that with a normal form absolutely all key presses are transferred to max, but this seems easy to solve by setting enableAccelerators to false.

Does anybody know how to get the 3ds max icon to appear in a standard dotNet form? The way I've got it working is form.icon=(dotNetObject "MaxCustomControls.MaxForm").icon but this seems overkill. Is there a better method of setting the icon dependent on the main max parent window icon?

CGTalk Moderation
02-27-2012, 11:52 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.