Best practices for Custom Look Knob value label
-
@ForeverLive Check out my LAF tutorial - everything you could possibly want to know about that.
-
@clevername27 thank you, but in your example you replaced all the knobs with Custom Look. But i already got working knobs and just need to add a values labels to that knobs. So i wanted to ask, did you ever find a HISE snippet for editable label that is connected to a knob in a proper way?
-
@ForeverLive I reckon that in your case you want a popup that reacts like a label, but you want the possibility to use up/down arrows... So for this it is a custom panel that you need, not a simple label. This is totally doable, but it's not a beginner friendly process I'd say. You first need to know how to connect a simple label to a slider, that udpates the slider value and is updated from it, so bidirectional.
Once you can do this, try to replace the label with a panel, and draw the slider value on it. From this point, the panel will need to react to keypress events (
setKeypressCallback
). Only then you'll be able to click the panel, and take the keyboard events as entry for the characters you need, as well as the UP.DOWN arrows.The keyPressCB is explained here:
https://docs.hise.audio/scripting/scripting-api/scriptpanel/index.html#setkeypresscallbackJust take your time and do things step by step to understand which function does what action
-
@ForeverLive Check this LAF library:
https://github.com/christoph-hart/hise_laf_library/blob/main/Examples.md
-
@resonant thank you, but again - there is no just simple example of how to implement knob value label that is editable.
-
HiseSnippet 932.3ocsV8taaaCDmxILq1asXEXO.B4SpXoF1o+YCnXXd1IYvnMoFycAaepfl5rMWnHEnn5h2Pe27izdC5NJJaIuZmMXrpOX.d286te2w6N5QFMGxxzFRPy2rHEHAeAc7Bkc9f4LghL7LRvCnWxxrfIzKp+hTVVFDSBBN3GcBBZdHo36u999LISwgJQDx0ZAGdkHQXqjNp2KER4ErX3MhjZV+zdC4Z0.sTmi74.ZGRJieCaFbEyYVCJI3nyiEVsYrkYgLRvg80wKFOW+6Ju8WKxDSjf6PWxXzQdwWnkwNF6jRFLWHiGsJuyHnWFUUENvWE9J5khXwZ4UUiurPQXEh50ifFaRuC1fdcqSuN0n2VnTPMJcnmROjNlaDo1JMN974zgJ7xYJCK60oh2VRCdC5.MZgx1NgcCbgAOrFQzy6z4jP7mG8hVnUYZIzlKAlIBEzBuKxrguiYBeoROoa32EtxSy.6.cRpVgGhNtP6wHhJ.uhMAj6FgWsCB9ITRgBBmlq3VgVEpUENzgznkQ7UvNA8rLGdTq+rUSuCZmAnyrvs1iOI7RlcdaiNWEG4sK7qCONtuKHu+EsJboy9R2NfIkSvlqnMi1tXjOd2IkVGgqchhRYlL.KzkjAcboE74L0LHNxyqpD4iI1FAEMuFetRagWqhJBbq22J7epZ5zspqzWRvrU0toQycALRkmLAL0SamgXK5l88zc22Werj6aNpYnVMTIruNET6ZXkT1Q4lQJYEZpsXB4AkSHikhXvPD3fvmQKp5jBBWsoo2RxOO7LlksxMnGwnjBFqvk.AmAuC2a4G7ZROCxtwpSwUPqahIAs9WC5sqC3xY8Vr9PueqWhNtzwbAdISxxmNUflSogw8IIh3XILRmIbk+JVe5xj56a+0kIraquqE2RmNV7GP8UxjZL9HOiueIiK5uJH78n9dscw3kldSlsZubyiPIevI1M44x1G+jSQVS93UV3xRcbtjY2bCp6YiREt7q9ZK2pIEl2KpmC+usV8+JEeHcjvxmucN1XKbDai9TvwxGitO87oSAtshfGRu3W9z7xC4mz4VgZFtN0TzQdUdxX7dmCXzUJP5FuCZ3FD8m63N6p.iAUbwgOfekJ65NGTpr6JkjDF2neK2O95dt6dERPNoJdouI9WNvygqmaozNs63lKDukyco+iwcCaGyo6AlmrGXd5df4Y6AlmuGX9l8.y2dmXb+omeH2pS7iCnfQmWr+LH3bEC6rJ5BI+M7MCQeH
-
@ustk you are truly the best! Thank you. Yet do you think it is possible to add a keyboard arrows support? To be able to use up and down keys to increment the value by single step? Sorry may be alot of asking.
-
@ForeverLive Have you read my post above?
-
Shift click on a knob - baaam, free label!
-
-
@d-healey i'm totally sure we got some kind of recursion here.
-
@ustk Oh thank you for the reply! Yes it is exactly what i looking for.