ShinyLookAndFeel + ComboBox


#1

v1.14

I have a Combobox on a TabbedComponent:

	Tab1Component():Component(T("Tab1"))
	{
		
		
		combo1 = new ComboBox(T("Combo 1"));
		combo1->addItem(T("New Item 1"),1);
		combo1->addItem(T("New Item 2"),2);
		combo1->addItem(T("New Item 3"),3);
		addAndMakeVisible(combo1);
		combo1->setBounds(20,20,200,30);
		combo1->setSelectedId(1);

		button1 = new TextButton("sad");
		addAndMakeVisible(button1);
		button1->setBounds(250,20,100,25);

		button2 = new TextButton(T("happy"));
		addAndMakeVisible(button2);
		button2->setBounds(250,50,100,25);

		slider1 = new Slider(T("Slider"));
		addAndMakeVisible(slider1);
		slider1->setBounds(250,80,200,25);
	}

With the default LookAndFeel everything is rosy, but if I set ShinyLookAndFeel I get this:

Bug or my cock-up I wonder?

cheers, Colin


#2

Reminds me of something similar that I had - are you using a static ShinyLookAndFeel object? If so, it might get initialised before the static Colours that it uses in its constructor, which means all its colours are set to uninitialised values. Try using a ShinyLookAndFeel member variable instead.


#3

[Lord Mayhew] That’s got it, Ted! [/Lord Mayhew]

Thanks.


#4