Knowledge Base

Two colours can be set in SimpleHMI: The foreground colour, which applies to text, and the background colour. Colours are specified as a Red, Green, Blue triplet. Some common colours are listed here.

SPLat/PC build 244 or later contains a colour picker under the Window menu. It copies its result to the clipboard as an RGB triplet when you click its OK button.

To help you manage colours more easily, SimpleHMI has some unique functions PushColours()PopColours(), PopFGColour(), and PopBGColour(). These can be useful when you have several different MultiTrack tasks writing to different parts of a screen, to prevent your colours getting mashed up.

The hash functions will respond to the US spelling “color” as well as the correct spelling, “colour” 🙂