drawAnalyserBackground = border around floating tile
-
@Oli-Ullmann Did you explicitly tell it not to draw a border in your paint routine?
-
@clevername27 said in drawAnalyserBackground = border around floating tile:
Did you explicitly tell it not to draw a border in your paint routine?
How do you do that?
-
@d-healey I should have phrased my question better, thank you. I can't look at the snippet, so I'm essentially asking if the LAF was being successfully applied, and what was in the paint routine.
-
@Oli-Ullmann Ii don't see anything in your LAF that draws anything.
Content.makeFrontInterface(600, 600); const analyserLAF = Content.createLocalLookAndFeel(); const FloatingTile1 = Content.getComponent("FloatingTile1"); FloatingTile1.setLocalLookAndFeel(analyserLAF); analyserLAF.registerFunction("drawAnalyserBackground", function(g, obj) { }); analyserLAF.registerFunction("drawAnalyserGrid", function(g, obj) { });
-
@clevername27
I have also tried “g.drawRect”. That didn't work either with different border sizes.
Is that what you meant?Or is there another way to stop the object from drawing a border?
-
@Oli-Ullmann said in drawAnalyserBackground = border around floating tile:
Or is there another way to stop the object from drawing a border?
I think this needs to be resolved in the HISE source.
-
@Oli-Ullmann I default to @d-healey.
-
I just use a panel and offset floating tile -1 -1 to get rid of the border
-
@oskarsh Clever :)
-
@oskarsh oh yeah, good solution! Thanks for the idea! :-)