From 8baa07ac897162b72024584bfd632062a16adefa Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 15 Jul 2014 12:09:59 +0100 Subject: [PATCH] Updated introjucer component editor to use callout boxes for colour editors --- .../properties/jucer_ColourPropertyComponent.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/extras/Introjucer/Source/ComponentEditor/properties/jucer_ColourPropertyComponent.h b/extras/Introjucer/Source/ComponentEditor/properties/jucer_ColourPropertyComponent.h index 0ddc19be54..311df82d05 100644 --- a/extras/Introjucer/Source/ComponentEditor/properties/jucer_ColourPropertyComponent.h +++ b/extras/Introjucer/Source/ComponentEditor/properties/jucer_ColourPropertyComponent.h @@ -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()