Yes, this was done by ChatGPT I tried to reply the post with this warning, but I didn't have the rights, as a new user.
Thanks David!
Yes, this was done by ChatGPT I tried to reply the post with this warning, but I didn't have the rights, as a new user.
Thanks David!
setControlCallback()
- "Control Callback function must be an inline function" ErrorI'm developing a custom knob UI in HISE that draws a blob shape.
I want to click a button to regenerate the blob (change its randomness),
but I keep getting this error:
Control Callback function must be an inline function
I've tried:
setControlCallback()
is completely inlinesetControlCallback()
setAttribute()
to store and retrieve blob data within the knob componentContent.repaint();
after updating valuesNone of these approaches work. The error persists.
Even when using a fully inline function like this:
btn.setControlCallback(function(component, value) {
if (value) {
Console.print("Blob Clicked! Generating new shape.");
// Try storing data inside the knob to update later
var knobComponent = Content.getComponent("knob1");
knobComponent.setAttribute("blobData", generateBlob(9, 0.35, 0.1));
Content.repaint(); // UI refresh
}
});
I still get the error.
setControlCallback()
?Iβd appreciate any insights. Thanks!
Hey there,
First of all, I'm new here and am loving the community and collective effort.
I'm trying to understand LAF, but couldn't find an easy way to find which registerFunction
fn to use for each UI component. For instance, I'm trying to modify the laf of a panel, but couldn't find a laf.registerFunction("drawPanel", fn);
.
Is there a way to modify a component without using a registerFunction
?
Thanks in advance.