DDgui Programmers Reference Guide by Nicholas J. Kingsley - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Colour Picker

 

The colour picker allows the user to choose a colour by modifying the individual components (red, green and blue).  HSV and HSL selection would need to be implemented by the user.

 

The colour picker is called with :

 

colour% = DDgui_ColorDlg(colour%)

 

colour% is the initial colour that will initialise the colour picker.  This function returns the colour selected by the user.

 

If the user has cancelled the window, then the return colour will be the same as that which initialised the function.

 

The colour picker looks like :

 

img30.png