Customizing combo boxes - how?
-
Actually I've just forgot to forward the global script look and feel to the UI elements of the settings windows. I've fixed that so you should be able to skin these combobox just like any other one.
HiseSnippet 1252.3ocsV0saaaCElJMpX1cYqEXO.DFCE1XtZRN8OzggVam3hfkzXDmULfffBZIZKtPQZPQkD2h9DsWhc2tXuL6MX6PQaKqD2zTCLcgD44O8wC44im9JYHMMUpPNUNd5DJx4qcGLUni6FSXBzd6fb9F2CHoZpBaE0Y5DRZJMB43bmWaD3TYST9y+7xNDNQDRKDgPuUxBo6yRX5Bo8e0uv37djH5wrjkr9wuZuPonqjKy.7bGWezDR3Yjwz2PLlsgKx4t6FwzR0.MQSSAa5HilNHVdgvZ+aYorgbpYR.Z.DHqXT2XFOp+70ZJB4rY+hU9crq7uy8.VDag7hLv8yUfK7X4bfyFkgzlkfTvmBR8j7HS.9DvyYI3soEdOvcPnhMQWnwfs64tm.1bFQfz9xvxZKZC+Mc6JAKDZuDxYzdJXxBOp+Te+l3m3623m1p5VUgjepFeNQg4jQ3eFuqXLSP8BUTXo8ZtbHgaC69R4YsEQ8nTdcqqfCdJ5Xl4fRuLQnlIE0qEoHWzUlLT1QdYsl3QyULtIVN72arU0OrUUL7L1Kkps6608urUK+7GSjsZGAGWNRlIfL1QzPMQLlSqCQvi.PCV.dKYaQjreR8tfoiaymDSJjDyzzl37PPEDX6IB+vGhyiHfvyoMvuDG34ieA12qUiRAuGj.qWqshQ33NvlHrtBBV..qglTHARfyg3B+MIj1b1XAM5X5k5b.ngAMwmPNw+T7OfCfMDxIAmZd25zGYmt8ov7Zb5Hcs4Xw7KhgegQYo7zw.xxyOyinIN3Ggi+wsg2yCOHGDzbwKH9GPzwd82y7C93maScGX0KG2ISqkhadi0.o1b9J1VsuYixSBxyopFVIeN+tluQPs1s22qsUd3kSGSMqhfm6shexJOQYN+z3VrqVbFsVHTBpnQ0lkemmxvRwajZ5gh5Mp9gpUp9wp3qpZznUpyTVqjbNUsR0FpU0M4XcQVxPppIbThmQWXHv2TlP6t2NBsPKKyRFJE6IX5CmPmMufxKXETdnYzTvnecucHZhgEblLvtITklYfiyNzygqTrbhUb2gldlVNI21jIRgIBN2SOiP2RW0iKIZlX7wL.1L.Aeq6xhBPWhbbcZ.+4olAeOL3BVjN1L4ubPnXJabr1L6ObVfSK.tua2rTsLY.UaBWJZ3342eU4t+K7XtWCNrjTH8u+yqJs0xhyW5a7dG27RnZ6n.5HUsWf0pLZSqn7DPIQGlomjoKIpS1nQT0.16Ka4.RxDN8HXqsjXK6dm9GT1X3DKIAVWGHitRXBIbZOfrTVFa4W22NA3p0Gjw0rIb1UPeWNknL2m1s6J.19xPh4X5UVvCytQHrOPQA5NwVP568jlyG8r4CAJ5EiZUHb9nVd9lAmB0lP+IW6tWnC.YTFmnK2Vfo+mYJ.LW59WycrhTld5x8G8Ezqf+J6UXkEN2R39.29LcX7pw6Fq.uPA3+23cVmWa4tKbXMTW.1Mc68aqaaVeAPAZpvT1BW8oXFRf2jkL.JHCo.RDBJO0TzuggbxN22L2jYFPEQ4SL03yTFXl6LSYvbknDRnR9tPKoqo2tuJWBfIQdasUf9qg43.TNQL3mqumOJAJQdWXnIU7H.6q1mVqgOauF9730vmmrF97z0vmmsF977azGC6T6LfU2Vl.B5uaNsriyt1tEMmHQ+GvyaltA
-
@Christoph-Hart yay!!
-
Awesome, thank you!
-
Ok, one quick question - can I define the width of the popup box in the custom settings lists?
-
- an additional question - how can I change the background, text and get rid of the beautiful little images in the boxes that popup?
-
Funny I was working on exactly this customization on Friday...
I‘ll push this tomorrow.
-
@Christoph-Hart I love these moments!
-
-
@Christoph-Hart awesome, thanks so much!
-
It's super awesome, but the only thing I can't get to work properly on this window is the font of the main text - it works fine on the headers. It works for fonts that are installed in the system like the mighty Comic Sans, but when I want to load a custom font from the images folder it doesn't work:
obj.font = "MyFont";
I've loaded the font previously with:
Engine.loadFontAs("{PROJECT_FOLDER}Fonts/MyFont.ttf", "MyFont"); Engine.setGlobalFont("MyFont");
Should I add it somehow else so that the obj.font can see it? It doesn’t work with the laf global font class either.
And one more thing - if I got rid of the icons, how can I center text to the center of the box?
-
-
It would also be amazing to be able to specify the height of the menu items to customize the vertical spacing between items! Or is it possible already?
-
This post is deleted! -
Hey @Christoph-Hart, I noticed you added the fix to the font problem in the latest version, thank you!
In case anyone else was wondering about the height of the right-click popups and menu items, look at line 242 in HI_LookAndFeels.h file. You can change the height multiplier there.
-
The last question is - how to center the text box of the alert window if there's no icon? I guess it should be doable in one of the .cpp files but I'd really appreciate some direction as to where to look for it :-)
-
I've changed it so that if you want to not use any icon at all, just set the
obj.type
property to-1
in the script lookandfeelcreateIcon()
method -
Ok, I'm a little lost. Should I call it in the script editor or modify some file?
-
@tomekslesicki Some examples are in the link posted. Have you checked those out yet?
https://docs.hise.audio/glossary/custom_lookandfeel.html#alert-windows -
Yeah, I tried:
laf.registerFunction("drawAlertWindowIcon", function(g, obj) { obj.type = -1; });
But it doesn't work unfortunately.
-
Have you pulled the latest version? I‘ve added this just now.