Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / dotNet Issue - Can't input to controls properly
  RSS 2.0 ATOM  

dotNet Issue - Can't input to controls properly
Rate this thread
 
37657
 
Permlink of this thread  
avatar
  • Matt.H
  • Posted: 10 December 2009 03:05 PM
  • Total Posts: 1
  • Joined: 22 November 2009 06:11 PM

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 ()


Replies: 0
avatar
  • SITT
  • Posted: 11 December 2009 12:45 AM

enableaccelerators = false



i am Chinese, my English is very poor,thank you for talk
MSN:sitt#live.cn

Replies: 0