Hey all,
Is there a way to get a dotnet form working integrated into a scripted material?
(
plugin material plTest
name:"Test"
classID:#(0xa8c2cf8, 0x418e7d77)
extends:DirectX_9_Shader replaceUI:true version:1
(
parameters pmMain rollout:rolTest
(
)
rollout rolTest ""
(
button btTest "test"
dotnetcontrol dnctForm "maxCustomControls.maxForm" width:200 height:60
on rolTest open do
(
dnLabel=dotNetObject "label" --"system.windows.forms.label"
dnLabel.backColor=(dotNetClass "system.drawing.color").red
dnLabel.bounds=dotNetObject "system.drawing.rectangle" 10 10 100 40
dnctForm.controls.add dnLabel
dnctForm.show()
)
)
)
meditmaterials[1] = plTest()
)
It is there, but not showing.
Cheers,
Robbert