Floating_Inkpot
12-12-2009, 11:16 AM
Hi,
I am using a dotnet MaxForm control and i can't set the backcolor as i would with aclassic dotnet Form :
(
Form = dotNetObject "System.Windows.Forms.Form"
maxForm = dotNetObject "MaxCustomControls.MaxForm"
Form.backcolor=maxform.backcolor=(dotnetclass "System.Drawing.Color").FromARGB 255 0 0
Form.show()
maxForm.showmodeless()
)
I want to use MaxForm because i have some problems with the classic dotnet form integration in max. (i can't get focus on textbox etc... whereas maxform works for that)
when i :
showproperties (dotNetObject "MaxCustomControls.MaxForm")
it returns the backcolor property, but setting any color will not work
i also went into the 3dsMaxDotNetSDKRef.chm help reference. (in 3dsmax SDK / Help)
Namespaces > MaxCustomControls > MaxForm
There i can see :
BackColor (Inherited from Form.)
There is also a method UpdateColors :
Updates the form's colors according to the current CUI settings.
So a MaxForm backcolor depends on the colors of the Customize User Interface ?
Is there a solution to override this ?
Thanks :)
I am using a dotnet MaxForm control and i can't set the backcolor as i would with aclassic dotnet Form :
(
Form = dotNetObject "System.Windows.Forms.Form"
maxForm = dotNetObject "MaxCustomControls.MaxForm"
Form.backcolor=maxform.backcolor=(dotnetclass "System.Drawing.Color").FromARGB 255 0 0
Form.show()
maxForm.showmodeless()
)
I want to use MaxForm because i have some problems with the classic dotnet form integration in max. (i can't get focus on textbox etc... whereas maxform works for that)
when i :
showproperties (dotNetObject "MaxCustomControls.MaxForm")
it returns the backcolor property, but setting any color will not work
i also went into the 3dsMaxDotNetSDKRef.chm help reference. (in 3dsmax SDK / Help)
Namespaces > MaxCustomControls > MaxForm
There i can see :
BackColor (Inherited from Form.)
There is also a method UpdateColors :
Updates the form's colors according to the current CUI settings.
So a MaxForm backcolor depends on the colors of the Customize User Interface ?
Is there a solution to override this ?
Thanks :)
