Creating Check Box.

 
 #include <Controls\CheckBox.mqh>

 CAppDialog app; 

  CCheckBox checkbox_fixedLot;


   checkbox_fixedLot.Create(0,LABEL_CHECKBOXFIXEDLOT,0,10,200,20,20);
   checkbox_fixedLot.Text("Use Fixed Lot");
   checkbox_fixedLot.Color(clrBlue);   //checkbox_fixedLot.Color(clrWhite);
   checkbox_fixedLot.Checked(true);  
   app.Add(checkbox_fixedLot);
   

I am not able to create checkbox in mt5 graphical panel. Need Some help.

 

What's wrong (log)?

Do you know the example: https://www.mql5.com/en/docs/standardlibrary/controls/ccheckbox?

Documentation on MQL5: Standard Library / Panels and Dialogs / CCheckBox
Documentation on MQL5: Standard Library / Panels and Dialogs / CCheckBox
  • www.mql5.com
CCheckBox - Panels and Dialogs - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Carl Schreiber #:

What's wrong (log)?

Do you know the example: https://www.mql5.com/en/docs/standardlibrary/controls/ccheckbox?

What do you mean by (log)?

Code seems right but its not creating any checkbox.

 

Follow the example - it creates a working check box!

Learn to search, copy, paste, and amend it's a lot faster than learning to program.

Documentation on MQL5: Standard Library / Panels and Dialogs / CCheckBox
Documentation on MQL5: Standard Library / Panels and Dialogs / CCheckBox
  • www.mql5.com
CCheckBox - Panels and Dialogs - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: