how do I add a checkbox on the chartwindow

Back to topics list To post a new topic, please log in or register
avatar
5
kuolung1967 2015.10.20 02:16
 
As I know I can use objectcreate to add a button but objecttype no checkbox type.   How to add a checkbox 
avatar
Moderator
3418
GumRai 2015.10.20 02:43 #
 

wingdings 253 and 254

      ObjectSetText(Name,CharToStr(253),14,"Wingdings",clrBlack);
      ObjectSetText(Name,CharToStr(254),14,"Wingdings",clrBlack);

 Create a label, then set text as above.

Set chart event to alternate when clicked. You may need to back it with a rectangle label as clicks on label objects are not always recognised if painted on top of another object. 

avatar
1
Palves16666 2016.08.24 19:06 #
 

Hello Moderator 3316 / GumRai

 

How are you?

 

I am novice in mql4, How Do I do this alternance in Chart Event clicked?

 

Please, I am trying for days, however I am not able to develope this code.

 

thanks 

avatar
Moderator
3418
GumRai 2016.08.24 19:36 #
 
   if(id==CHARTEVENT_OBJECT_CLICK)
     {

      if(sparam=="Your_object_name")
        {
         //Do something;
        }
     }

.

Back to topics list  

To add comments, please log in or register