Please enable JavaScript to view this site.

KOL/MCK - User Guide

color

There is no friend for taste and color. (Russian folk proverb)

 

 

When working with graphics, when customizing the interface, etc., you often have to choose the color of the drawing tool, interface element, etc. This work is performed by this object, referring to the standard system color selection dialog.

 

Constructor:

NewColorDialog(fillopen) - creates an object for invoking the color dialog, returning a pointer of the PColorDialog type. The fullopen parameter specifies whether the dialog will immediately open "completely", with an additional field for choosing an arbitrary True Color (16 million colors), or only in a reduced form.

 

Object's only method:

Execute - calls a dialog to the screen, and in case of a successful color selection, signals this by returning the value true. The selection result should be read from the Color field of the object, after returning from the Execute method.

 

To customize the dialog, before invoking the dialog, you can change the following fields:

OwnerWindow - the window that "owns" the dialog (it becomes active immediately after the end of the dialog, it is also used to determine the place on the screen for placing the dialog at the moment of its opening);

CustomColors[1..16] - additional 16 colors, which are placed in additional squares at the bottom of the dialog. By default, all these squares are white, and in the dialog itself, the user can add his own colors to them using the shape extension, where you can select an arbitrary RGB color;

ColorCustomOption - additional operating mode (open completely, open in abbreviated form, do not allow to open completely);

Color - the color chosen by the user as a result of the successful completion of the dialog, such as TColor.

 

Mirror in MCK: TKOLColorDialog.

 

KOL / MCK User Guide - Created by Carl Peeraer - Diamant Soft, based on the work of Vladimir Kladov - Artwerp.be

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC