HISE Logo Forum
    • Categories
    • Register
    • Login

    Changing combobox font

    Scheduled Pinned Locked Moved General Questions
    27 Posts 9 Posters 2.9k 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 @Christoph Hart
      last edited by d.healey

      @christoph-hart Is there a method to change the text size of a combo box? Because my custom font is coming out tiny. Also I noticed that setting the global font also affects some of the text of the HISE interface too!

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

      JayJ ossian1961O 2 Replies Last reply Reply Quote 0
      • JayJ
        Jay @d.healey
        last edited by

        @d-healey following

        Joansi Villalona

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

          @d-healey said in Changing combobox font:

          @christoph-hart Is there a method to change the text size of a combo box? Because my custom font is coming out tiny. Also I noticed that setting the global font also affects some of the text of the HISE interface too!

          Same here. When I investigated around the Hise sources I found that ComboBox is a JUCE module and there's no way (apparently) to set the font size after using the globalfont function as you can see from the code :(

          void ComboBox::paint (Graphics& g)
          {
              getLookAndFeel().drawComboBox (g, getWidth(), getHeight(), isButtonDown,
                                             label->getRight(), 0, getWidth() - label->getRight(), getHeight(),
                                             *this);
          
              if (textWhenNothingSelected.isNotEmpty()
                   && label->getText().isEmpty()
                   && ! label->isBeingEdited())
              {
                  g.setColour (findColour (textColourId).withMultipliedAlpha (0.5f));
                  g.setFont (label->getLookAndFeel().getLabelFont (*label));
                  g.drawFittedText (textWhenNothingSelected, label->getBounds().reduced (2, 1),
                                    label->getJustificationType(),
                                    jmax (1, (int) (label->getHeight() / label->getFont().getHeight())));
              }
          }
          

          https://www.kontakthub.com/label/Imagik-Sound/
          https://mirtklaar.bandcamp.com/

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @ossian1961
            last edited by

            Yep we are now needing this too

            HISE Development for hire.
            www.channelrobot.com

            LindonL 1 Reply Last reply Reply Quote 1
            • LindonL
              Lindon @Lindon
              last edited by

              @Lindon Bump Bump - REALLY needing this now.

              HISE Development for hire.
              www.channelrobot.com

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

                font.gif

                Link Preview Image
                - added font property to combobox · christophhart/HISE@cd0eb5a

                The open source framework for sample based instruments - - added font property to combobox · christophhart/HISE@cd0eb5a

                favicon

                GitHub (github.com)

                d.healeyD U 2 Replies Last reply Reply Quote 2
                • d.healeyD
                  d.healey @Christoph Hart
                  last edited by

                  @Christoph-Hart Today is a productive day :D

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

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

                    Yeah, just crawling through the stuff that has piled up...

                    LindonL 1 Reply Last reply Reply Quote 1
                    • LindonL
                      Lindon @Christoph Hart
                      last edited by

                      @Christoph-Hart OK I can set the font, any way I can change the font size?

                      HISE Development for hire.
                      www.channelrobot.com

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

                        @Lindon Actually you can ;)

                        Untitled.jpeg

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

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @ustk
                          last edited by

                          @ustk woah - mine looks NOTHING like that:

                          556c00e5-a0dc-4f76-a5ee-06f19ff9cda8-image.png

                          -- am I on some earlier scriptnode release?

                          HISE Development for hire.
                          www.channelrobot.com

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

                            @Lindon Font options is under the items list.

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

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

                              @d-healey yeah I see that - but NOT on my implementation - it stops at the list...

                              like this:

                              8efb9132-add7-4bea-ae0c-1b620c8f8aee-image.png

                              HISE Development for hire.
                              www.channelrobot.com

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

                                @Lindon When did you last rebuild? My version is from the 25th of September.

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

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

                                  @d-healey ..yeah mines from 11 july....look like I will have to re-build but I dont see anything in git hub about this

                                  HISE Development for hire.
                                  www.channelrobot.com

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

                                    @Lindon July! Oh you're living in the past, definitely grab the latest.

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

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

                                      @d-healey LOl - yeah thats me - old and infirm and living in the past...

                                      HISE Development for hire.
                                      www.channelrobot.com

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

                                        @Christoph-Hart The text alignment property would be nice to have too ;)

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

                                        LindonL 1 Reply Last reply Reply Quote 1
                                        • LindonL
                                          Lindon @ustk
                                          last edited by

                                          @ustk it surely would - but that was my problem (being old and infirm - and not up to date with my HISE releases) but I'm pretty sure many people will tell you I'm at least the first two. of those...

                                          HISE Development for hire.
                                          www.channelrobot.com

                                          1 Reply Last reply Reply Quote 0
                                          • U
                                            udalilprofile @Christoph Hart
                                            last edited by

                                            @Christoph-Hart give snippet, please)

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            28

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.3k

                                            Posts