HISE Logo Forum
    • Categories
    • Register
    • Login

    Text Colour Property For Combo Boxes

    Scheduled Pinned Locked Moved Feature Requests
    12 Posts 2 Posters 2.6k 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
      last edited by

      I just realised there's a setColour() function, what are the colourIds?

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        The setColour method is really ancient so don't waste your time with it. But I'll add support for the textColour property.

        1 Reply Last reply Reply Quote 2
        • d.healeyD
          d.healey
          last edited by

          Cool thanks :)

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

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

            Has this been implemented?

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

            1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart
              last edited by

              Now it is :)

              Link Preview Image
              - added combobox text colour property · christophhart/HISE@623f63d

              The open source framework for sample based instruments - - added combobox text colour property · christophhart/HISE@623f63d

              favicon

              GitHub (github.com)

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

                Yippie! :)

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

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

                  Is there a simple calculate to convert between HEX and whatever colour code format is used by HISE json?

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

                  1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart
                    last edited by

                    Colours are usually coded using 32bit unsigned integers and the values that the HISE JSON generator spit out are valid code numbers. However the hexadecimal view 0xAARRGGBB is much more (about a ratio of 100000x) readable - in fact the only conversion I am capable of is transparent black = 0 :)

                    But why do you need to convert those? They are made from a machine for a machine and if a human wants to intercept, he can just talk his language (the AARRGGBB format).

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

                      When I'm using control.set("bgColour", colourValue); I'm not sure what to put for the colour value when I get hex from the colour picker. If I'm using JSON it's not an issue as the colour picker inserts the correct value for me but I'm not using JSON that much.

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

                      1 Reply Last reply Reply Quote 0
                      • Christoph HartC
                        Christoph Hart
                        last edited by

                        Like that?

                        0_1501351950716_ColourPicker.png

                        control.set("bgColour", 0xB6954E23); // Important: the colour number without "" (prepending '0x'  before a number means hex notation)
                        
                        1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey
                          last edited by

                          Oh I was adding quotation marks, now I get it. Thanks!

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

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

                          37

                          Online

                          1.8k

                          Users

                          12.1k

                          Topics

                          105.0k

                          Posts