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....



NumColors


Unit:SDL_colsel
Class:TColSel
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 http://www.lohninger.com/examples.html for downloading the code): selcolor



Last Update: 2023-Dec-14