1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

Updated introjucer component editor to use callout boxes for colour editors

This commit is contained in:
jules 2014-07-15 12:09:59 +01:00
parent aef09a4d5b
commit 8baa07ac89

View file

@ -90,11 +90,8 @@ public:
void mouseDown (const MouseEvent&)
{
ColourSelectorComp colourSelector (this, canResetToDefault);
PopupMenu m;
m.addCustomItem (1234, &colourSelector, 300, 400, false);
m.showAt (this);
CallOutBox::launchAsynchronously (new ColourSelectorComp (this, canResetToDefault),
getScreenBounds(), nullptr);
}
void changeListenerCallback (ChangeBroadcaster* source)
@ -124,6 +121,8 @@ public:
addAndMakeVisible (defaultButton);
defaultButton.addListener (this);
}
setSize (300, 400);
}
void resized()