void ProjectContentComponent::showBubbleMessage (const Rectangle<int>& pos, const String& text)
{
    addChildComponent (bubbleMessage);
    bubbleMessage.setColour (BubbleComponent::backgroundColourId, Colours::white.withAlpha (0.7f));
    bubbleMessage.setColour (BubbleComponent::outlineColourId, Colours::black.withAlpha (0.8f));
    bubbleMessage.setAlwaysOnTop (true);

    bubbleMessage.showAt (pos, AttributedString (text), 3000, true, false);
}
示例#2
0
//--------------------------------------------------------------------
void SidebarPanel::changeListenerCallback (ChangeBroadcaster* source)
{
    ProcessorParameterPropertyComp* comp = (ProcessorParameterPropertyComp*)source;

    /*
        if(comp->changeMessage=="add automation")
        {
            filterGraph->addNodesToAutomationTrack(comp->getNodeId(), comp->getParamIndex());
            comp->changeMessage="";
        }
    */
    if(midiLearn)
    {

        String text = filterGraph->findControllerForparameter(comp->getNodeId(), comp->getParamIndex());
        if(text.isEmpty())
            text = "Unassigned";

        midiBubble.showAt(comp, AttributedString(text), 1000);
    }
}