Look & Feel Slider textbox?
-
@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