|
I was just wondering if its me, or I a feature of Max.
I create a form, and attach a numericUpDown control.
When I got to modify the values in the control it seems to invoke shortcut keys which means I can’t input and values, it pretty much only leaves 0,1,3,5,7,9 on the numpad.
Is this something that 3DS Max does on purpose, and if it is, does anyone know how to disable shortcut keys with a single command/function.
Below is a small sample of how I am doing this. (Also, is it possible to put activeX controls on a dotNet form?)
function render_globals_test = (
global render_globals_form
if render_globals_form != undefined then
try(render_globals_form.hide())catch()
--create and design form
render_globals_form = dotNetObject "System.Windows.Forms.Form"
render_globals_form.size = dotNetObject "System.Drawing.Size" 485 330
render_globals_form.text = "Temp Render Globals"
render_globals_form.MaximizeBox = false
render_globals_form.topmost = true
render_globals_form.ShowInTaskbar = false
render_globals_form.TopLevel = true
export_anim_from = dotNetObject "System.Windows.Forms.NumericUpDown"
export_anim_from.Location = dotNetObject "System.Drawing.Point" 50 50
export_anim_from.Minimum = -32000
export_anim_from.Maximum = 32000
export_anim_from.Value = rendStart
export_anim_from.Increment = 1
export_anim_from.Size = dotNetObject "System.Drawing.Size" 70 20
export_anim_from.name = "export_anim_from"
--add main tab control to main form
render_globals_form.controls.add export_anim_from
render_globals_form.show() --show the Form
)
render_globals_test ()
|