Contents Up Previous Next

Colour

The presence of a monochrome screen can be detected so the application can change its use of colour accordingly. Currently, wxWindows tries to choose appropriate pen and brush colours for a monochrome display. To override this behaviour, set the device context Colour member to TRUE and choose custom colours for drawing graphics.

The Colours utility can be useful for displaying colours and their names.

Colourmaps (or palettes) are supported only for colourmaps that have been created by platform-specific utilities such as the DIB and wxImage utilties. So you can associate a colourmap with a window or device context, but functions to create and manipulate colourmaps are lacking. Future versions of wxWindows should improve upon colourmap handling.