Forum
    • Categories
    • Register
    • Login

    How to do text links in a settings panel?

    Scheduled Pinned Locked Moved General Questions
    17 Posts 4 Posters 765 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.
    • dannytaurusD
      dannytaurus @David Healey
      last edited by dannytaurus

      @David-Healey Yeah, same here. Maybe it's because it's rendered in a plain panel and the link handling is only built into the MarkdownPanel floating tile? 🤔

      Well, I'm looking at using a Web View now. It's going well except the links are opening within the web view, instead of the user's default browser. Just need to sort that out.

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @dannytaurus
        last edited by

        @dannytaurus said in How to do text links in a settings panel?:

        using a Web View now.

        Doesn't work on Linux so not an option for me

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

        dannytaurusD 1 Reply Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus @David Healey
          last edited by

          @David-Healey I'm a bit wary of using one too to be honest. But I don't know how else to do it without a load of old school hacks like an array of x,y coords and a mouse broadcaster, or invisible buttons on top of text.

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          David HealeyD ChazroxC 2 Replies Last reply Reply Quote 0
          • David HealeyD
            David Healey @dannytaurus
            last edited by

            @dannytaurus Use fewer links in the design :)

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - HISE tutorials
            My Patreon - More HISE tutorials

            dannytaurusD 1 Reply Last reply Reply Quote 0
            • dannytaurusD
              dannytaurus @David Healey
              last edited by

              @David-Healey 😂

              Meat Beats: https://meatbeats.com
              Klippr Video: https://klippr.video

              1 Reply Last reply Reply Quote 0
              • ChazroxC
                Chazrox @dannytaurus
                last edited by Chazrox

                @dannytaurus I just used a straight up button and changed the text to the url link. Laf for hovers and clicks etc.

                1 Reply Last reply Reply Quote 1
                • Oli UllmannO
                  Oli Ullmann @dannytaurus
                  last edited by

                  @dannytaurus
                  The safest way would probably be to use a panel with its PaintRoutine and MouseRoutine.

                  To ensure that the area for mouse interaction is correctly positioned over the link on every operating system, you could perhaps use Engine.getStringWidth(String text, String fontName, float fontSize, float fontSpacing) for the calculation.

                  dannytaurusD 1 Reply Last reply Reply Quote 1
                  • dannytaurusD
                    dannytaurus @Oli Ullmann
                    last edited by dannytaurus

                    Got it working nicely with a WebView. Very easy to implement but I'm a bit wary of using it.

                    I notice using CSS throws an 'experimental' warning in the console, but WebView doesn't.

                    Are WebViews production-ready? Who's using them in plugins right now?

                    CleanShot 2025-12-14 at 09.20.29.gif

                    Meat Beats: https://meatbeats.com
                    Klippr Video: https://klippr.video

                    dannytaurusD 1 Reply Last reply Reply Quote 2
                    • dannytaurusD
                      dannytaurus @dannytaurus
                      last edited by

                      Sorry to necro this post but I wanted to update with how I ended up doing this.

                      After the Markdown text didn't work for me (links not clickable) and the WebView proved too fragile/unproven I decided to go with the classic hack of interspersing buttons in the credits text:

                      CleanShot 2026-07-27 at 15.01.09@2x.png

                      That worked great until the text rendering on Windows scared the bejesus out of me! 😂 Any deviation in text size or spacing causes the buttons to overlap the text and just generally look bad.

                      It's also a pain to align all the buttons and I ended up here with 4 lines of text, with a specific amount of spaces between certain words and 8 separate buttons. Not very nice to manage.

                      So I went back to the Markdown renderer and added link click handling instead. That means the credits text block can be one single text string with links formatted within the text.

                      I lose the 'external' icons after each link but the standard underlined/coloured text for links is completely fine, and universally understood. I actually prefer simple underlined links anyway.

                      CleanShot 2026-07-27 at 15.29.05@2x.png

                      So that's where I'm at right now. Here's the PR that adds link click handling to MD rendered text:

                      https://github.com/christophhart/HISE/pull/1007

                      Meat Beats: https://meatbeats.com
                      Klippr Video: https://klippr.video

                      dannytaurusD 1 Reply Last reply Reply Quote 1
                      • dannytaurusD
                        dannytaurus @dannytaurus
                        last edited by

                        I also added a LineSpacing and LetterSpacing to the Markdown renderer so I can style it to match my plugin.

                        https://github.com/christophhart/HISE/pull/1008

                        Meat Beats: https://meatbeats.com
                        Klippr Video: https://klippr.video

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

                        15

                        Online

                        2.4k

                        Users

                        13.9k

                        Topics

                        120.8k

                        Posts