HISE Logo Forum
    • Categories
    • Register
    • Login

    Yes/No window, panel modal popup, are they actually working?

    Scheduled Pinned Locked Moved Bug Reports
    14 Posts 3 Posters 385 Views
    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.
    • d.healeyD
      d.healey @ustk
      last edited by

      @ustk Just the yes/no window, I remember not liking modal panels because they have that X button, I make my own instead.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      ustkU 1 Reply Last reply Reply Quote 1
      • ustkU
        ustk @d.healey
        last edited by ustk

        @d-healey Yeah they seem weird to me anyway...

        So I have the Yes/No working, the silly boy I am forgot to put a result parameter in the callback...
        However, it appears I can't find a way to colourise the "normal" markdown text (but I can get all the rest)
        I assume a simple string with no markdown extra syntax should be considered normal text right?

        Also I don't like having to rely on an external reg to pass-in the value but it's not a big deal either...

        HiseSnippet 1382.3ocsW0saaaCElJIJqVaEnEXO.D9J6hLGa2zrhELjebhKBVbhwTZ25UEzRz1blhzfhNIdE8wYuG6QZuAaGJJYIm33j3soKjMO+wO9wCO5vtJY.MNVpPNktb5XJx4ab8mJzCaMjvDnSOF47b2ORiOW9KLQn7ZzQSGShiogHGm0emwDmRafRd9q8OhvIh.ZtHD5CRV.8LVDSmKs6A+DiyaSBoWxhJX8NGbZfTzRxkS.3rtaczXRvHx.54DiYq4hb17jPlVp70DMMF4rwQxvo9CkWKr1+AVLqGmZFz.4CAxJtsjGZPrQJp0PFOra1xNFAQoaNIrtkD9V2NrP1L44jwKRTfy8nHe3r17va84fWi6CdK.RNEfzFVH8RW+.EarNWiAOes6oBMU0m.zdQnXsEs1e7L2VRvBgtVDYDssBFLyiJ6Vu9VX3U087.qhkbZs.Nknp.B7f8hXM9JhBGP3bppQqd3eDmEsATcKYzXo.FTo7LKJCddaGa9fN1z5nmhN.7iCVWGF4s81fWQ8jGIuA2ziI3LAE2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XL8xGO28j98oA5b.tga6ecUuowCL8+rbh4SEcHZEyj.b9jHenJT.ElcgfxiMIEqYNpXGW2L1v.9TQXxf+FdRU1vL1IUYiLknHRfR9o.aI.y0adVhD.Shja1UxsiYLtAJor.3mK7weTDbSqOEDXV9eGb5cw9zbE740qfO6rB97lUvmcWAe99Uvm2tTeLWx8vIZYj83.Hn6II0GcbNQPfLqjrPz+.XkdzlH
        

        Can't help pressing F5 in the forum...

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @ustk
          last edited by d.healey

          @ustk Colouring doesn't work because you have a typo. Do you want me to tell you what it is or do you want to figure it out? :p

          Oh you don't need to use a reg you can use a lambda.

          	Engine.showYesNoWindow("Multiply ?", "This will multiply by 10", function[value](result)
          	{
          		Console.print(result ? multiply(value) : value);
          	});
          

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @d.healey
            last edited by ustk

            @d-healey You're blowing my mind twice in one post!
            Well, for the typo I can't even find it, I understand now why everyone's telling me I need glasses... Arfff... 45 is the time I guess... 🤣

            The use of lambda? seriously? You really opened my mind Dave! :)

            Can't help pressing F5 in the forum...

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @ustk
              last edited by

              @ustk
              yesNoLAF.registerFunction("getAlertWindowMarkdownStyleData", function(g, obj)

              This function only needs one parameter: obj. :)

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              ustkU 1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @d.healey
                last edited by ustk

                @d-healey That one I could have searched the whole night 🙄 👏

                Speaking of which, time to go bed... :sleeping_face:

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 1
                • ulrikU
                  ulrik @ustk
                  last edited by

                  @ustk I would love to use the yes/no windows my self but they are not working inside Logic, they popup and hide behind the plugin and you have to drag the plugin window aside to find it... 🤥
                  I don't know if this issue is related to Logic or Hise but I stopped using them.

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  ustkU 1 Reply Last reply Reply Quote 1
                  • ustkU
                    ustk @ulrik
                    last edited by ustk

                    @ulrik thanks for the feedback. A chance my current project is only a standalone app…

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • ustkU
                      ustk
                      last edited by ustk

                      Is there a way to set the yes/no window position when called?

                      Can't help pressing F5 in the forum...

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @ustk
                        last edited by

                        @ustk No, always opens in the middle of the screen I think.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        ustkU 1 Reply Last reply Reply Quote 0
                        • ustkU
                          ustk @d.healey
                          last edited by ustk

                          @d-healey Yeah not exactly, that's the problem, it's a bit offset and too low anyway for my interface.

                          SOLVED
                          Another thing, are you able to style the headline in the middle of a string?
                          I can with `code` but not with #headline... (tried with different level of ###)

                          Screenshot 2023-01-20 at 17.33.41.png

                          const var text = "This is normal text.    #This is a headline.    \`This is some code\`;
                          
                          modalWindows.registerFunction("getAlertWindowMarkdownStyleData", function(obj)
                          {
                          	obj.font = "Montserrat";
                          	obj.headlineFont = "Montserrat";
                          	obj.codeFont = "Andale Mono";
                          	obj.textColour = Colours.whitesmoke;
                          	obj.headlineColour = Colours.red;
                          	obj.codeColour = Colours.orange;
                          	obj.fontSize = 16.0;
                          	
                          	return obj;
                          });
                          

                          EDIT: Found it, it requires a \n before

                          Can't help pressing F5 in the forum...

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

                          21

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          102.6k

                          Posts