Change the text color of an EpiShape control

I added an EpiShape control in a Dashboard and I need to change the color of it. I thought it would have been the ForeColor property but it doesn’t work. Black is readable for the StatusTypes.OK status but for the StatusTypes.Stop color (red), it’s hard to read and I would prefer to set the text to white

image

Tried to go in the Object Explorer to see if there are other properties but haven’t found anything yet

The only way I found is to use the StatusTypes.Warning status to make it yellow but I’m still curious to know if I can control the text color !

image

EpiShape1.Status =(Ice.Lib.Framework.StatusTypes)4;
EpiShape1.BackColor = System.Drawing.Color.Red;//System.Drawing.Color
EpiShape1.Appearance.BackColor2 = System.Drawing.Color.Red;
EpiShape1.EnabledCaption=“样板PO”;
EpiShape1.Enabled=true;

2 Likes

Not sure what is changing the text color in there ? It works since the text color is white on a red background but just by curiosity, is it possible to just change the text color with this?

You could try this. (I haven’t actually tried it, I just see that it’s available.)

YourShape.Appearance.ForeColor = System.Drawing.Color.White;