HISE Logo Forum
    • Categories
    • Register
    • Login

    showYesNoWindow - Customise button text?

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 179 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.
    • DanHD
      DanH
      last edited by DanH

      Can I customise the text of the buttons in a YesNo window?

      Engine.showYesNoWindow("SELECT FOLDER", "SELECT", function(response)
      

      Currently they display 'OK' and 'Cancel'... LAF maybe?

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

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

        @DanH Pretty sure you can do it in LAF, there's an alert dialog button function or something similar.

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

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @d.healey
          last edited by DanH

          @d-healey can’t see anything related to the buttons in the docs tho… I’m using the other laf functions for the alertWindow in my project already.

          As a slight aside is there a way to centralise the text in an alert window? Currently all lines are fixed to the left. I see a ** makes the text bold. I should probably brush up on my markdown!

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

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

            @DanH Autocomplete has more up to date info than the docs

            ede5d899-500f-46aa-849b-5b50d93f13f0-image.png

            Markdown doesn't have any text justification unfortunately. I asked about this a few weeks ago.

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

            DanHD 1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @d.healey
              last edited by

              @d-healey Thanks. How can I use drawDialogue button for the alertWindow do you know? I don't want to change all of them, just for a specific window...

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

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

                @DanH You'd have to filter by the text

                if (text == "ok")
                // change the text to something else... I'm just guessing here :)

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

                DanHD 1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @d.healey
                  last edited by

                  @d-healey that was my first idea but then it will change the other ‘ok’ buttons. All good I can work around it. Thanks!

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

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

                  55

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.7k

                  Posts