So I’ve occasionally taken a quick hour to try and make all my Slider textboxs fade in/out with mouse hover events.
Every time I think it should be simple, but then end up coming up short.
First, tried setting the textBoxColour when the mouse hovers, but this doesn’t have an effect (Since the colour is a label colour set with lookAndFeel). Even getting the look and feel and then changing it doesn’t do it, though it seems like it should.
So, I tossed the slider textboxes, made my own custom labels, and got them fading … however, this requires me to use attachToComponent (which for some reason has orientations for left and above, but not below … where I want the labels). If I don’t use attachToComponent, I can try to set the position myself, but this turns out to be pretty difficult using getScreenX, etc.
So … these both seem like reasonable approaches, but I can’t help thinking I am missing some easier way.
Would it be reasonable to request a getLabel() method on the sliders to help access the label?
Or how about an attachToComponent() method that uses the TextEntryBoxPosition struct somehow?