Slider BubbleComponent


#1

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

Thanks,

Rail


#2
  • 1

#3

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


#4

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());
        }

#5

That would be great

Cheers,

Rail


#6
  • 1 :slight_smile:

#7

Good request, will add that now!


#8

:smiley:


#9

Works great!

Thanks,

Rail