Download MetaTrader 5
To add comments, please log in or register
Searching on MQL5.community is performed in all sections. Try it!
sunshineh
1064
sunshineh 2014.04.25 12:47 

Hi,

what possibilities are given to active/deactive ea settings on the chart?

I found, that I can put buttons on the chart, now.

Is it also possible to "create" a clickbox or write ON / OFF on the chart and change the value by clicking on the string?

Are there examples for these functions?

qjol
3243
qjol 2014.04.25 14:19  
see here, here and here also check \\include\controls\CheckBox.mqh
sunshineh
1064
sunshineh 2014.04.25 15:15  
Thanks for your links!! Does this mean, that I can use every mt5-graphical object also with my mt4 account?
sunshineh
1064
sunshineh 2014.04.25 16:35  

Now I am testing the button functions.


I have created my button and want to change the button text.

I am changing the text with:

ObjectSetString(0,"Button_Testname",OBJPROP_TEXT,"Deinit");

If I read the Text I am getting the right value, but the button isn't changing the text on the chart. (Only if I put string ObjectSetString(0,"Button_Testname",OBJPROP_TEXT,"Deinit"); in the deinit function).

I tried also the command ChartRedraw() after my command-string, but it doesn't help :-(

/
To add comments, please log in or register