The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:property NumColors: integer;

The property NumColors defines the number of colors shown in the color drop down list. It may take values between 1 and COLSEL_MAXCOLORS. Please note that increasing NumColors will uncover previous color definitions; so you have to define the new colors (by setting the array properties Colors and ColorNames) if the old ones do not meet your requirements.

Hint: In the Light Edition the number of colors is restricted to 47 (see COLSEL_MAXCOLORS).

Example: This property is used in the following example program (see for downloading the code): selcolor

Last Update: 2012-Okt-20