Can i control the design of the slider textbox?
-
My design has a slider for selecting the band split of a multiband saturator.
I want that the user is able to type in a custom value. Is it possible to get rid of the white box?
Is it possible to align the text to the center of my box? It jumps away (top left) when i click into it for some reason.
HiseSnippet 805.3ocsUszaSCDDd2z3BI7PsRbETN1JUghSRgJwAL4EDURaTcaE2p1XuIYUs20Z85VRQbmabj+NvuA9iv+.XVamX21n9HR3CQYdsy2Ny7M6.ovgFFJjHboCmFPQ3GaXOkqlzZBgwQ8ZivO0nOITQkURT0bZ.ILj5hv3UduVAtTQT72edaShGg6PyTgPGKXNzOx7YpLsCr1k440k3ROj4my6FV8bD7VBOQDfmULphBHNmRFS2incqfABuZGWlRHsUDEMD7oovcp8Dw47D+OlExF5Q0BlHa3fRTiZMg44NX1cMDgvEGjcyWI4l+Li9LW1b8YUf0hMTIKh70.bgaBRl2CHgyAohIPZcCaGIKPkYQimGYziCMjQDnTmGJI9hv+xnk.bfqdoO4TZWIHLOfMpUs5VUfeJu4aFEwcTLAuhfumPQ2muwlk+R4Rk+Z4JW0znQKzlNORgmGUtPy51q7lBbCdj+PpbqJmQ7hnycDt+Wtnt5cqn5jbsy4nf2iyT6GPSk6J7b0EK8+udK.kV2zMiTDBtphaEOMsUX6wboRDCNjGXrKWLzDEC94iwA+vBcTu1DEY1w.mHjk.pTwzWFba5Y.oHoCWxnMM7TkHH1W+.AWme7Z2ZR+77D9yCrlNWv5HqP0TuXh7GDR1EP9IdnyYtpIHrAtF3yDJa7DkV5EZ7Nq.zyUOZERTQRBT6AxmD3cvbSu3z1jvcMQ94Y7Mr7IY33a+1xm455QGHBY59bFn9tESQ8mwrKYTu91a2nQcTl1ZZ0lll6zXGSzvwyccUH7mqOCXETfM6BZ98MnqyX.tpvMxSeAxSf0apRMnAVdVilZvA.OM+IeOX0UuQV8cEhqaLfoblrXLVXAXDFt9efwzcgOwnynQTGUF.KZz8SK6huaI8GHhTL939DkjAiSF6E4aCceGJjcNm5EpGUKnomIxU0x5JfMk6FK7W3K0noVFmZzblQjOwQJNwIgTq219vXM.l3wOtTBdkCjqbU1L7AC0rSbbt7Qcs.qsrAVeYCrwxF31KafuZYC70Kaf6b6Apea9cQJgeBsAg5OnS71WLtCm.SfwSqn+ALt2YDC
-
@Straticah You can use the modal text input. I used it for making a value edit widget - https://forum.hise.audio/topic/9041/feature-request-value-edit-input-widget/7?_=1714484860813
-
@d-healey oh i have found this, looks amazing btw, but for some reason i am not able to type into it, it resets on double click like a dial
-
@Straticah Shift+click
-
@d-healey ah got it, is it possible to have double click as the default in terms of UX?
-
@Straticah You can do anything you like, it's triggered in the mouse callback. The regular HISE sliders use shift click so that's what I used.
-
@d-healey i followed your example but i just found out that if i type in a value with shift click it does not change the value of the assigned parameter. Only on drag. How can i solve this? :)
-
@Straticah said in Can i control the design of the slider textbox?:
@d-healey i followed your example but i just found out that if i type in a value with shift click it does not change the value of the assigned parameter. Only on drag. How can i solve this? :)
Got a snippet?
-
@d-healey i just checked and the one you provided seems to have the same issue:
https://forum.hise.audio/post/76517PS added the snippet here:
HiseSnippet 2907.3oc0Ys0aabbEdosXPnZSgSZa.5KESVfBrLRdCIsjkkcbhH4RZSaQqURzR9BDB1KCIGwk6xtWDEcheo+x5Oo9XeK8blYuwKRVw.snV.RZtblybNey41LqtumEMHvyWpPodylPkJ76Kd7L2vgMGZvbk5nIU3qJdggSDsi6jnvSY1CngRMlMwHHfZKUnvseBRWgRqIw+4e8iMLbLbsnYCIIchGyhtOaLKLaT88dNywosgMsGabNp2ZuNVdtM8b7h.Y51EqHMwvZjw.5KLPxtUQoBeVKaVnm+wgFgz.oBq0vyd1wC8l5Jn+DV.yzghcpJcLvHwvs8brQIFGUp4PlisdhtGHAbQOCIts.I9SE6xrYoimgH2gOAIaE4wiB2Zdw61yIdUyKdUxIdqPjJjSjVSHReYwis7YSBylAkmeWwNtgT+9F.rmWTDzJcq28GK1zCnvMTcrwHZaenS5JTpUoxlD3Okez5qCPePHYhqi3fl7XhkOEziSPK.TuTjSmTFW.y0g4RI8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XCKeuexRTGE5Z947Q.81k+knKUrK1mTc4hmfL9rexxZdVszBq8wtv68wtvs9XW31erK79erKbmO1E9fO7BwOde8nPuwB+DIot5s3E6VnPKwMUv7rR+GPNw+aw
-
@Straticah Investigating... :detective:
-
Ah ok, we need to add
component.changed();
after setting the value. -
@d-healey perfect! works well now :)