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:
parent
aef09a4d5b
commit
8baa07ac89
1 changed files with 4 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue