1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Minor additions to AlertWindow, tweak for 64-bit Atomics, minor clean-ups. Jucer development.

This commit is contained in:
Julian Storer 2010-05-07 15:07:47 +01:00
parent 9ec78100e0
commit 87e416a278
34 changed files with 412 additions and 121 deletions

View file

@ -63,10 +63,12 @@ void ChoicePropertyComponent::createComboBox (const Array <int>* choiceIDs)
addAndMakeVisible (comboBox = new ComboBox (String::empty));
int itemId = 0;
for (int i = 0; i < choices.size(); ++i)
{
if (choices[i].isNotEmpty())
comboBox->addItem (choices[i], choiceIDs == 0 ? (i + 1)
comboBox->addItem (choices[i], choiceIDs == 0 ? ++itemId
: ((*choiceIDs)[i]));
else
comboBox->addSeparator();