Is there some way to force the dotNet button to change the text color to gray when it’s enabled=false, as is done in 3ds max’s native button?
When I try to change the text of a button that becomes disabled, the text color doesn’t change and still remains black, as if the button is still active.
For the button I used the EnabledChanged event with the following code:
dotnetcontrol dnButton "System.Windows.Forms.Button" --- on dnButton EnabledChanged e do ( if dnButton.enabled then ( setProperty dnButton "ForeColor" dotNetBlackColor ) else( setProperty dnButton "ForeColor" dotNetGrayColor ) )
But that doesn’t work, just like the normal color assignment dnButton.ForeColor=dotNetGrayColor
Thanks for any help.