Notifications
Clear all

[Closed] MaxForms and Mapped Shortcut Keys

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

2 Replies

Use System.Windows.Forms.Form

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?