Can we change the color of a button's text?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ausn's picture

Thank you !

Thank you !

real08121985's picture

EPILEPSY WARNING The

EPILEPSY WARNING
The following rollout uses crazy colors!

rollout rlTest "" (
dotnetcontrol button "Button" width:100 height:30 pos:[0,0]
on rlTest open do (
button.text = "Test"
randomColor = random white black
button.foreColor = button.foreColor.fromArgb randomColor.r randomColor.g randomColor.b
randomColor = random white black
button.backColor = button.foreColor.fromArgb randomColor.r randomColor.g randomColor.b
)
)
createDialog rlTest 100 30

ausn's picture

I know that we can use a

I know that we can use a .net button and set its foreColor to a disired color.
But my problem is that the foreColor property is a System.Drawing.Color and we just can set the color to one of the following preset colors.

.A : , read-only
.AliceBlue : , read-only, static
.AntiqueWhite : , read-only, static
.Aqua : , read-only, static
.Aquamarine : , read-only, static
.Azure : , read-only, static
.B : , read-only
.Beige : , read-only, static
.Bisque : , read-only, static
.Black : , read-only, static
.BlanchedAlmond : , read-only, static
.Blue : , read-only, static
.BlueViolet : , read-only, static
.Brown : , read-only, static
.BurlyWood : , read-only, static
... ...
... ...

And you can't set it to a random color like color 50 50 50.

So how can we set the color to any color we want?

real08121985's picture

i think thats only possible

i think thats only possible with dotnet

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.