Labels being editable by default
-
How can I set Hise to make labels non-editable by default? It seems to me that having them editable is almost never going to be needed by a user. I am constantly going back to projects to make sure I set them all as non-editable.
-
@pcs800 You'd need to modify the source code or use a helper script.
-
@David-Healey Can you help me understand why editable is the default? Is there some reason users need to be able to change the label text?
-
@pcs800 It depends on what you're using it for. If you need to get user input then it needs to be editable. I pretty much never use labels, panels and look and feel do the job most of the time for me.
-
Personally I use panels in most cases as well.
In your case, I know all of my components begin with a prefix indicating their type.
Examples:knb: knobs btn: buttons lbl: labelsI do this to be able to assign LAFs. control callbacks, etc. as I want.
Assuming you did something similar, it would be simple enough at the outset of your project to format all the labels as you want:const var labels = Content.getAllComponents("lbl"); for (l in labels) l.set("editable", false);Editing the HISE source code is a quicker, more permanent recommendation.