Add locks for gui
-
hi, is it possible to add like locks to the gui.
For example i have 1 area with all the blocks i need and connected, the area can be set to locked, thus no changes can be accidentally made to the whole area until unlocked.
it would be a neat feature to add for large complicated ea. Thank you. -
Also is it possible to add color variable? if i use text and put inside the box, this happens http://snag.gy/ZaUtS.jpg
not sure how it will work out yet. -
It is possible, but I don't know when and if

__Also is it possible to add color variable? if i use text and put inside the box, this happens http://snag.gy/ZaUtS.jpg
not sure how it will work out yet.[/quote:1dgfrikm]
Hm, this looks like a bug
But otherwise I believe that it's working. -
The color is not working, i set the variable to Red but it still appears black on the chart
-
This appears to be only a display bug to me, the original value appears as well as the html "div" for the variable. But otherwise it works for me here: https://fxdreema.com/shared/pB55TwpAd I also saved the block parameters few times, tried with different values for the color, tried in the local version.
Make sure that the datatype is numeric. There is a "color" data type in MQL actually and I will add it as an option, but the value is truly an integer value.
-
oh, i used text in the datatype
-
You can use "Red" or "Blue" only because these are predefined constants in MQL4. They contain some numeric value, I don't even know the values for each color and this is not important.
Here is a list of all colors: http://docs.mql4.com/constants/objectco ... /webcolors
Now constant names officially start with "clr...", but names like "Red" and "Blue" are still supported by MQL4.