Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Libraries | IncGUI ColorInput

Graphic control for color selection.

MetaTrader Experts, Indicators, Scripts and Libraries

The class uses the IncGUI_v4.mqh and IncColors.mqh libraries.

IncGUI_v4. mqh, IncColors.mqh and IncGUI_ColorInput.mqh must be placed to terminal_data_folder\MQL5\Include

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.

The details can be found in the articles:


889

Best MetaTrader Indicators + Profitable Expert Advisors