|
|
|
@@ -49,7 +49,6 @@ ComboBox::ComboBox (const String& name) |
|
|
|
noChoicesMessage (TRANS("(no choices)"))
|
|
|
|
{
|
|
|
|
setRepaintsOnMouseActivity (true);
|
|
|
|
ComboBox::lookAndFeelChanged();
|
|
|
|
currentId.addListener (this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -410,12 +409,22 @@ void ComboBox::enablementChanged() |
|
|
|
repaint();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ComboBox::colourChanged()
|
|
|
|
{
|
|
|
|
lookAndFeelChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ComboBox::parentHierarchyChanged()
|
|
|
|
{
|
|
|
|
lookAndFeelChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ComboBox::lookAndFeelChanged()
|
|
|
|
{
|
|
|
|
repaint();
|
|
|
|
|
|
|
|
{
|
|
|
|
ScopedPointer <Label> newLabel (getLookAndFeel().createComboBoxTextBox (*this));
|
|
|
|
ScopedPointer<Label> newLabel (getLookAndFeel().createComboBoxTextBox (*this));
|
|
|
|
jassert (newLabel != nullptr);
|
|
|
|
|
|
|
|
if (label != nullptr)
|
|
|
|
@@ -446,11 +455,6 @@ void ComboBox::lookAndFeelChanged() |
|
|
|
resized();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ComboBox::colourChanged()
|
|
|
|
{
|
|
|
|
lookAndFeelChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
bool ComboBox::keyPressed (const KeyPress& key)
|
|
|
|
{
|
|
|
|
|