Libraries: IncGUI_ColorInput

 

IncGUI_ColorInput:

Graphic control for color selection.

To use the class you need to include IncGUI_ColorInput.mqh:

#include <IncGUI_ColorInput.mqh> 

Then, declare the class (CColorInput class instance):

CColorInput ci; 

To get the selected color, use the Color() method, the color can be set using SetColor(color aColor) method.

The example of the class use is attached - see eTestColorDialog.mq5.

Author: Дмитрий

 
a masterpiece.
 

Great implementation!

The only thing is that clicking on the picker control (which is "colour input") doesn't always work, because sometimes when you click on it, the button is involuntarily shifted.

Imho, for pickers it is better to catch mousedown event that occurs at CHARTEVENT_MOUSE_MOVE with sparam=1. For colourpickers on the web this is exactly how it is done.

 
Dima is a human being, he puts out such things for the people that it's amazing.
 
Urain:
Dima is a human being, he puts out such things for the people that you will be amazed.
+1