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!
-
@d-healey following
-
@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()))); } }
-
Yep we are now needing this too
-
@Lindon Bump Bump - REALLY needing this now.
-
-
@Christoph-Hart Today is a productive day :D
-
Yeah, just crawling through the stuff that has piled up...
-
@Christoph-Hart OK I can set the font, any way I can change the font size?
-
@Lindon Actually you can ;)
-
@ustk woah - mine looks NOTHING like that:
-- am I on some earlier scriptnode release?
-
@Lindon Font options is under the items list.
-
@d-healey yeah I see that - but NOT on my implementation - it stops at the list...
like this:
-
@Lindon When did you last rebuild? My version is from the 25th of September.
-
@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
-
@Lindon July! Oh you're living in the past, definitely grab the latest.
-
@d-healey LOl - yeah thats me - old and infirm and living in the past...
-
@Christoph-Hart The text alignment property would be nice to have too ;)
-
@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...
-
@Christoph-Hart give snippet, please)