It would be great if we had some public methods to set the Slider PopupDisplayComponent font size and the BubbleComponent’s AllowedPlacement
Thanks,
Rail
It would be great if we had some public methods to set the Slider PopupDisplayComponent font size and the BubbleComponent’s AllowedPlacement
Thanks,
Rail
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
Good request, will add that now!
Works great!
Thanks,
Rail