Slider BubbleComponent

It would be great if we had some public methods to set the Slider PopupDisplayComponent font size and the BubbleComponent’s AllowedPlacement

Thanks,

Rail

  • 1

I could use this myself… What if there was something in the LookAndFeel specific for the PopupDisplayComponent::BubbleComponent?

Hey Jules,

Would like to request these two additions to the LookAndFeel…

Font LookAndFeel::getSliderPopupFont()
{
    return Font (15.0f, Font::bold);
}

int LookAndFeel::getSliderPopupPlacement()
{
    return BubbleComponent::above
            | BubbleComponent::below
            | BubbleComponent::left
            | BubbleComponent::right;
}
    class PopupDisplayComponent  : public BubbleComponent,
                                   public Timer
    {
    public:
        PopupDisplayComponent (Slider& owner_)
            : owner (owner_),
              font (owner_.getLookAndFeel().getSliderPopupFont())
        {
            setAlwaysOnTop (true);
            setAllowedPlacement (owner.getLookAndFeel().getSliderPopupPlacement());
        }

That would be great

Cheers,

Rail

  • 1 :slight_smile:

Good request, will add that now!

:smiley:

Works great!

Thanks,

Rail