WM_INK [#channel,] palette_index


SMSQ/E >= 3.00

Newer Window Managers maintain a table of colour settings for programs to use as “standard colours”. This is called the System Palette, also known as a ‘colour theme’. Four system palette tables, or themes, are supplied with the operating system.

The list is sorted by usage rather than colour and includes colour values to be used for display items such as window background, border, loose items and so on. The items are referenced by a 4-digit hex number (16-bit value) as per the list below, or the decimal number equivalent. These numbers should not be used in standard INK, PAPER and BORDER statements – they are not colour values, merely an index to an entry in a list of colour values. They should be used with the WM_x equivalent commands, which will look up the colour values to be used for the item numbers in the list.

WMINK sets the ink colour for the channel indicated to the colour for the specified item number from the system palette.




Window border


Window background


Window foreground


Window middleground


Title background


Title text background


Title foreground


Loose item highlight


Loose item available background


Loose item available foreground


Loose item selected background


Loose item selected foreground


Loose item unavailable background


Loose item unavailable foreground


Information window border


Information window background


Information window foreground


Information window middleground


Subsidiary information window border


Subsidiary information window background


Subsidiary information window foreground


Subsidiary information window middleground


Application window border


Application window background


Application window foreground


Application window middleground


Application window item highlight


Application window item available background


Application window item available foreground


Application window item selected background


Application window item selected foreground


Application window item unavailable background


Application window item unavailable foreground


Pan/scroll bar


Pan/scroll bar section


Pan/scroll bar arrow


Button highlight


Button border


Button background


Button foreground


Hint border


Hint background


Hint foreground


Hint middleground


Error message background


Error message foreground


Error message middleground


Shaded area


Dark 3D border shade


Light 3D border shade


Vertical area fill


Subtitle background


Subtitle text background


Subtitle foreground


Menu index background


Menu index foreground


Separator lines etc.


WM_INK #1,$206

Sets the foreground colour in #1 to the title window foreground.