Forum

    • Register
    • Login
    • Search
    • Categories

    How to change Keyboard Hover Colour

    General Questions
    5
    14
    162
    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.
    • Tania Ghosh
      Tania Ghosh last edited by

      How to change Keyboard Hover Color?

      Tania Ghosh

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

        easiest

        function onNoteOn()
        {
        
        	    Engine.setKeyColour(Message.getNoteNumber(), Colours.withAlpha(Colours.green, 0.7));
        	 
        
        }
        
        function onNoteOff()
        {
                   Engine.setKeyColour(Message.getNoteNumber(), Colours.withAlpha(Colours.green, 0.0));
        }
        

        "One hour of trial and error can save 10 minutes of reading the manual."
        "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
        HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

          I don't think you can change the mouse hover colour (if that's what you mean). You'd need to make a custom keyboard with a panel or C++.

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

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

            I overlooked "Hover" - sorry

            "One hour of trial and error can save 10 minutes of reading the manual."
            "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
            HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

            Tania Ghosh 1 Reply Last reply Reply Quote 2
            • Tania Ghosh
              Tania Ghosh @MikeB last edited by

              @MikeB Yeah... @d-healey is right . The above script you have written is only for Keypress Up/Down color. I want to change Mouse Hover Color.

              Tania Ghosh

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @Tania Ghosh last edited by

                @Tania-Ghosh You can easily do it if you study C++

                Keyboard Hover.gif

                1 Reply Last reply Reply Quote 1
                • MikeB
                  MikeB last edited by

                  Will you tell us how?

                  "One hour of trial and error can save 10 minutes of reading the manual."
                  "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                  HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

                  DanH 1 Reply Last reply Reply Quote 1
                  • DanH
                    DanH @MikeB last edited by DanH

                    @MikeB I found this in the source code once and now I can't find it - does anyone know where it is?!

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

                      @DanH Use Look and Feel.

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

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

                        @d-healey I gave it a try this morning - seemed like I'd need to create a whole new keyboard? I like the stock one

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

                          @DanH said in How to change Keyboard Hover Colour:

                          seemed like I'd need to create a whole new keyboard? I like the stock one

                          Yes you'd need to draw your own, it's not too difficult and can be fun. Here's an example that I'm using which is similar to the stock one. You'll probably want to change the colours and I think the stock one has some more gradients going on. The stock one will have a paint routine in the source code somewhere that you might be able to use.

                          HiseSnippet 1412.3ocwWs0aaaCEVJMpa1q6Rw1S6IN+jxpqgjcabRKJZtY2EzjFu5z1AjYTPKQawEYRAI5jXTDfh8Ka+j1+frCIkrjSbRZM1v7CA4b+iGdNGdTmXtGIIgGaXV5vIQDCy6Y0cBSDrc.lxL1cGCyuwZebhfDizr1ZRDNIg3aXZdmWHYXVZYC0u+94agCwLORNKCi2xodj8ninhbtc13kzvv1XexgzQEz9QarqGmsMOjOFvycrbLhvdGiGRdEVp1RVFl2skOUvi6JvBRBnyVb+IcC3mxz5+VZBseHQR3ZzEbjlsw1AzP+NYm0DCCyk6jexui9j+CV6S8oS4mmA9Nk.TtEEyAlKcSPx8y.RlEfzxZHceqtdwzHQtDId9JqcYvEx.LjpKB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MW2ooqRqC4Cglk849jY7r74BXIQFiDJghh2aRHuE5t3wEvxznABaGhEcESBujm5zJ6J3x7gx0XQdTpmwuEyuPrWs74FmJyoSuj+q+bi.BcXP9Z2e7W2v3paXB61x8GCnZ1Edka1mJ.5tlYKS4ljrDpXRwM++L1B14F2B9SEh22pCU3ELeLtzbvHz28eAFS+1gu1pErromHGfKa092VzOT3VBOLFW1juOVDSgdbKneoKzw4QRqH.maYtjb1il1QRKy.cILeEgrcMUnqj1LUnalPiQXuX968zyTkecxWp3.Xho9XrRvWEBzHWC0bVvNKmZNFifdh264IO9ODFGNeapu.1zXAr4QKfMOdArY0EvllKfMqci1HGGs4XXLntc.XzokZvqoYKFFprTUgF+CvECDJJ
                          

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

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

                            @d-healey Thanks, does the stock one not use images rather than paint routines?

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

                              @DanH No, it used to and you had to change the "UseVectorGraphics" option to true to disable that, but now this option doesn't seem to have any effect on the stock keyboard.

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

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

                                @d-healey ok thanks, your keyboard is nice, actually it suits my needs a little better 🙂

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

                                17
                                Online

                                985
                                Users

                                6.6k
                                Topics

                                60.9k
                                Posts