How to change color when checked

The shape is driven by enabled / disabled behavior and enabled / disabled caption.

So you can control this by binding the EpiShape to a CheckBox, when the CheckBox is Checked RowRule Disable

Then set an Enabled / Disabled Caption on the EpiShape.

That will give you 2 States of the EpiShape (Enabled Green / Disabled Gray)
EpIShape

There are ways to change its color too but that requires a bit of code. Which is pretty easy in the InitializeCustomCode set the Status Type of the Shape to one of these

/*
StatusTypes.Warning //Yellow

StatusTypes.Global //Blue

StatusTypes.OK //Green

StatusTypes.Stop //Red
*/ 
epiShapeC1.Status=StatusTypes.Stop;

image

3 Likes