@d-healey said in Adding an LAF knob ("rotary slider") did not work properly and changed appearance of other items as well:
.setLocalLookAndFeel()
Thanks! All is looking as expected now and I can move on in your tutorial :)
@d-healey said in Adding an LAF knob ("rotary slider") did not work properly and changed appearance of other items as well:
.setLocalLookAndFeel()
Thanks! All is looking as expected now and I can move on in your tutorial :)
@d-healey said in Adding an LAF knob ("rotary slider") did not work properly and changed appearance of other items as well:
.setLocalLookAndFeel()
Thanks! All is looking as expected now and I can move on in your tutorial :)
@d-healey
So I looked at this example:
https://forum.hise.audio/topic/5219/new-local-lookandfeel-objects
Then I disabled my global look and feel and added local look and feel, one for buttons and one for knobs.
The GUI has not changed however and is still showing unexpected results.
The knobs for example:
HiseSnippet 2133.3ocsXzzaabbcVIuxhqcRbPZ.ZOTfEDEETFxzKoVQIF2DSRIQakPYIHxnl.i.2g6NjbrVtCwtCkrpg.5gdnn.8PuTf9un+CZ+Iki4l6alYI2geHaQhDBHQNuul2Wy68l4jHlGINlEgLrZc0.Bx39lMuJj2audXZH5v8QFetYKR+AAXNwtQ051sGx4rPTsqFfiiI9HCiUelfTiL2AI+7iOsFN.G5QRAgPmwndjFz9TdJzSp7Mzff5XeRKZeMpcqbnGKbOV.aHnVqZ5fFf8NG2k7BrfrULQOGG2CY7PSOO2xjc6TbGmhkIa661tXAGbQmxk2gf21wqcYBtXm1dNHi0NvmxYQM4fYDiLtSMl+UM6wtLTsAmQiosCHhEEPMgcVAtNKvWXhBnn85QC7OYj+JFAR4jTu2pJu2ux7HpOcL7Tu3CjHrS4P2AZrxjp2pSndEzUOGM0aNpjglJcGkJ8olM8hnC3oXD5y8LOLjSh5fg3jtpnnEsx+xzbOFPQHOee74j5Qvhwbjqfiiyl1kbb13IVVO9wmcVCVWlED0h41WfirU.r+R6QxnKguGq+.VHrHWVE5rBlGQPLQnfCHQbJIF1s9ecyiewXJ2z15s1vGKw+xdI0m2K6WX65roBPOBsaOtNjNz.Y5B.K6aO4zi+5C1q0qpebi8O3zqO6rWE.BM+qGz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F+PE
@d-healey said in Adding an LAF knob ("rotary slider") did not work properly and changed appearance of other items as well:
You need to use local look and feel rather than global. When I made the video we only had global.
fillEllipse expects an array - that's what the error message is saying. It's telling you that you passed 4 values when it is only expecting 1. - You're missing some square brackets.
Ok, I'll read up on this.
Does it mean that I am supposed register a local look and feel for each object type (i.e. buttons, sliders etc.)?
I'm using this tutorial to make the knob with custom look and feel:
https://www.youtube.com/watch?v=PykrsXv8aqg&t=338s
but when I compile to draw the ellipse inside the ellipse (@5:35)
I am not getting expected results.
This is before adding the LAF knob:
and this is after:
I have triple checked the code against the code in the video and I believe it is identical.
The knob in the video looks like this when compiled:
@HISEnberg said in Replacing stock button image:
@VirtualVirgin Not really, in fact I don't think there are many (or any?) softwares that can do this. Consider it this way, how would HISE know what part of your image is the background and which part is not? There is no way of telling except by the colour gradient assigned to it. A much easier solution is to assign the background colour, create the png, and then incorporate it into HISE.
I'm not sure what you mean. The entire transparent area behind the .png would be the background.
@d-healey said in Replacing stock button image:
A button needs a minimum of 2 images/frames, to show the on/off states.
Once you assign an image the colour properties have no effect.
I think it would be a simple solution if enabled.
That way one could import a .png of an icon to use (like the settings cog above),
then select a background colour and use the laf button method to alternate between 2 colour states.
Much simpler than making film strip frames with different colours in an external image editing program.
@Gab said in Replacing stock button image:
@VirtualVirgin You should check out this video for more detail
https://youtu.be/d77QJfEMGms?si=fmfq01oFiUH8R6NK
I'm not sure what you're exactly trying to do with the background but once you're putting a custom image, these settings don't do nothing no more
I've watched the video twice, but it does not address the issues I encountered here.
My expectation about the behaviour of the button is that choosing "numStrips" 1 should simply allow the image I chose to be shown, rather than the stock button image.
When I try replacing the stock button image I am running into two issues-
When trying to replace the stock appearance with one image, I select "numStrips" 1,
but the the button does not load the new image, it just remains on stock appearance.
When I select "numStrips" 2, I can see the image I am trying to use (only half of course because it is expecting 2 images now), but even though the image is a .png, and is transparent, the background color is having no effect. I would want the background color visible, as the alpha of this color is what I am using to indicate the on/off state.
"numStrips" 1:
"numStrips" 2:
Here is what I am doing to try to import snippets:
MacOS 14.5
HISE 4.0.0
What am I doing wrong?
@d-healey said in How can I change the range slider default values?:
@VirtualVirgin I'm not familiar with the feature but I think that's only for if the snippet uses includes for external scripts.
My impression is that I would want to save snippets into the snippet browser so I can manage and reuse snippets easily. It has names, tags, category and author data.
Is this feature not in common use by the HISE community?