gNumericBox.gForeColorInLimits Property

Top  Previous  Next

PROPERTY                                               DATA TYPE

gUserLimitHigh

Double (Real)

gUserLimitLow

Double (Real)

gForeColorInLimits

Color

gForeColorOfOutOfLimits

Color

 

 

When ( gValue > gUserLimitHigh OR gValue < gUserLimitLow ), it is supposed that gValue is out of limits.

When this happens, gValueOutOfLimits event occurs.

 

When ( gUserLimitLow <= gValue <= gUserLimitHigh ), it is supposed that gValue is in limits.

When this happens, gValueReturnedIntoLimits event occurs.

 

When gValue value is out of limits gNumericBox ForeColor is automatically set to gForeColorOutOfLimits.

 

When gValue value is in limits gNumericBox ForeColor is automatically set to gForeColorInLimits.

 

C# code example

gNumericBox.gUserLimitHigh = 12.34;

gNumericBox.gUserLimitLow = 10;

gNumericBox.gForeColorInLimits = Color.Green;

gNumericBox.gForeColorOutOfLimits = Color.Red;