[Closed] introduction to Dotnet
hi!, first excuse my english.
I am Investigating Dotnet, but I have my first doubts.
in max script, pressed the button do this
rollout test "test"
(
button buttonTest "Test"
on buttonTest pressed do
(
Print "Hi!"
)
)
createDialog test
but Dotnet How come?
I have used this and does not work
rollout test "test"
(
dotNetControl buttonTest "system.windows.forms.button" width:80 height:20
on test open do
(
buttonTest.text = "Test"
)
on buttonTest pressed do
(
Print "Hi!"
)
)
createDialog test 110 30
Hi! Since you converted your button to a DotNet Button, you also have to pay atention to the Event Handlers, while in the normal 3dsmax button the click on the button is handled by the “pressed” event, in the DotNet button the click on the button is handled by the “Click” event handler.
So, just change the “pressed” to “click” and it should work now.
Everytime you use DotNet controls, you should look up on MSDN for the corresponding event handlers, since they probably be different from the standard Max ones.
Cheers!
thanks for your answer, worked perfectly. do you know if you can apply styles to spinners and sliders?
Have you seen these tutorials?