fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Add locks for gui

    Questions & Answers
    2
    7
    862
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      edwardseer last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • E
        edwardseer last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • fxDreema
          fxDreema last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • E
            edwardseer last edited by

            The color is not working, i set the variable to Red but it still appears black on the chart

            1 Reply Last reply Reply Quote 0
            • fxDreema
              fxDreema last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • E
                edwardseer last edited by

                oh, i used text in the datatype

                1 Reply Last reply Reply Quote 0
                • fxDreema
                  fxDreema last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  S
                  A
                  K
                  M
                  R
                  D
                  S
                  B

                  16
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors