Look & Feel Slider textbox?
-
Is it available?

-
@ulrik Why would you need this? Do you intend to use the stock slider design for your plugins?
Because as soon as you declare a custom LAF for a slider the entire component uses it so you can draw the text box of your choice. -
@ustk In my project I'm using only the textbox from a linear slider, the rest is transparent, and I would like to change the text and background colour of the textbox.
I can't see how to do that using the custom LAF for the slider
-
@ulrik Why don't you use a label instead of a slider?
-
@d-healey because you can't close a label with esc, and the label CB don't trigger if nothing is changed in it.
-
@ulrik Why do you want to trigger a callback if nothing has changed?
-
@d-healey with a slider, if you activate the text box and press esc, it will close, that is not possible to do with a label, maybe I explained myself poorly.
-
@ulrik Pressing esc works here with a label.
-
@d-healey Haha, yes it does, have it always worked like this?
However I use the linear sliders in this project so, is there a way?
-
@ulrik You can use a slider and a label ;)
-
@d-healey

-
Is there a way to set the textBox position and size with LAF?
-
@Dan-Korneff Don't know about LAF, I don't see any registerFunction option for the textInput.
But you can use the new Content.showModalTextInput() function.
https://forum.hise.audio//post/69512
It takes two args, one is an object that defines what it looks like, which font to use, colors etc., and the other is a function where ok = 1 if enter was pressed, and 0 for any other case (esc, or click elsewhere), so you can wrap the logic into
if (ok), check for out of bounds, then set the control value to the input. Just be aware that theinputreturn is a string, so you'll need to parseInt() or parseFloat() before setting the control value.You can trigger it via a broadcaster.
-
@aaronventure I must have missed that thread. showModalTextInput looks like it'll do the job