setMouseCursor scale
-
@Christoph-Hart Is there a way to add a scaling parameter to this API?
It is barely usable as it is, it seems to be doubled or even more... -
@Christoph-Hart Noticed that when hovering a panel that is inside another one (that has a mouseCursor set), the cursor doesn't display back to normal.
In other words, the custom cursor is shown even when hovering a child panel. But it works if the panel on the top isn't a child -
Looks like the scaling is hardcoded, would be nice to be able to set this.
-
@d-healey Oh nice! I haven't found it :)
I found a way to reduce its size by adding a subPath to the mouse path...
But yeah, having it accessible from script would be very nice! -
@ustk Hello ustk,
I have the same problem right now. You wrote that your solution was to add a subPath to the MousePath. Can you explain how you did that? In HISE? Or in a graphics program? I have no idea at all... :-(
Thank you very much and all the best
Oli -
@Oli-Ullmann You can call
startNewSubPath()
without actually drawing anything afterwards and it will change the bounding box of the path. This is super useful for keeping a consistent path size and I'm using that all the time (eg. when creating knob arcs etc).const var p = Content.createPath(); p.startNewSubPath(0.0, 0.0); p.startNewSubPath(1.0, 1.0); p.addEllipse([0.4, 0.4, 0.2, 0.2]);
-
@Christoph-Hart is this usable in laf paint routines?
-
@Straticah Sure.
-
@Christoph-Hart I will try this. Thank you very much!
Und guten Rutsch! :-)