nmpButtonColor (Function) |
Top Previous Next |
This function will set the background colors for a configurable button on the NMP.
Input: id : INT The ID of the button - between 1 and the button count defined in nmpButtonsDefine.
color: DINT (-1, 16#00_00_00..16#FF_FF_FF, default: -1) Determines the color of the button. If -1, the theme color will be used. Instead of specifying the color directly, the nmpRGBToDint function can be used.
night_color: DINT (-1, 16#00_00_00..16#FF_FF_FF, default: -1) Determines the color of the button to use when in the night theme. If -1, the day color will be used - unless it is set to use the theme, in which case the color of the night theme will be used. Instead of specifying the color directly, the nmpRGBToDint function can be used.
Returns: INT
Declaration: FUNCTION nmpButtonColor : INT;
Example: INCLUDE rtcu.inc |