drawAnalyserBackground = border around floating tile
-
As soon as you use
registerFunction(“drawAnalyserBackground”, function(g, obj) { });
a border appears around the floating tile. This can neither be edited nor deleted.
Here is a demo snippet:
HiseSnippet 1213.3oc2WszaaaDDdojoQkRaRSQPQORHzCJEFFRV1wpsnHRVObEpenX47nmBVQNRZqI2Ud4RaKD369X+Y0i8mR9GzNKojIosfqrPZBZ0AAMu39wY9lYV0UJrAeegjXj+3IiAhwma1aBWMpwHJiS5zjX7Py8o9JPZEoZmIio99fCwvH6tZEF4VgD948OeGpKkaCwpHjWIX1vdLOlJVa2Z+By0sM0ANl4kv6Mq0wVvaHbEAHdxZVhLlZeBcHb.U6VFSxOS8GQL9NyJfyFUqR2ZyJUrq98Us21lVErK2e6RaPG3ToJ3z2Yys1jRLVskCSIj8TTE3iOzcDNS5MRbNO5.dEym02EzBkI8vSNRMowHlqS2YIGeBwvrabpJaTp5Il6ybXWqONk8kgFrhiHYRyHycAox2CHYj.RqDAoGa1yVxFqhsnwyCL6vwJ3.JVaRBkHeIYxlwrg.8fqV2idBzVhBWGQwmUpzZV3WO8GymGqO9JKJm5NwGj6Uus0OYMKTaIfuQ6Irot6IDmTm6zF.2hwg01UPUL9viYtP4DANDTMDdiEbTnXgTdU.iNkh08A0sNhD3QeZIDWWBCYZ1a6.tshI3EK3HomWepG6f7qgRQ.2ovZVCl4xv0rD8+sml+c4yYk+x62SbWI6NeVyLXI3GHTvg7hg1xeYdqaZZvf4ZSm0jBWWPNWy5VJ4cEXQdfWePtl0YT2.3ZGQJTZd4pKFuzNpHlvQAuCmoNbLLUtsv0Qy2z+91rXxTV.9qW1oIUQ0D6o5P+FCRESCGilvY3njHZdNylf+IJw3PemRcvYWpo8kQD6jDGBCQviLSwkHWDO64WqMIVfU6bliBmzXZ76FDxHfMbjRK8Gw3MBHOxrdfCSLq5S5Ob13qbqVoRknmlB7h0d0UWcCsanU2rYyP0J3BUryylhFlWLdg46xaYU35rWGmB+.JRk33QkjcpUqWTtvZZW5vcfKPikBkvBfq37WKjm3iCTAT+.pqOj+RbT7slffytDNAtTU5AZ5Q8SMfroTSQzSJ39L0jjqBtGS4JcmS4VTH9XytLk8n4iwLyAiHO6eCLNc2vWX1Zv.vVECvULa+lkcQPoEeQf4rNjFAxyfVmNs9klkjBGGD30l4hSz70Tbchoc6iawo3YGl6Lx9AZgE4HQft4aeJhCr2yDO4dHS2FvrDmCtg.HitGKRtzL.0C3NgB+E9YpwxZYioFKOyXxRwCiREOvrGiCg2pILY70gxVuldFXsKvAolHU9NtXyetnWrY7BewlCsU3werjx8GK7S8f6AdriwAZ9IU9RebqLb5QZlcR8MDT4bM89m2FeImaL8np.YXKRcOb0mJUKwMp0qrX05zSGR3+bHqq7I3hTeXFw7IbJXpV7byvXOl2XWnE+LvEWTFhwuB2LNfF3ploMMwdeAWLdjfyrSV0OROXX3PPlD6y8EptRgWYJVySpcD3BzjL3us1dHyiJw7Drj4h6+8dma85aLifqktaz5+taux9+5sWeT1J7w3L7n1Rwasitkslm9YgZv2ad3+eMG9GoQYqxjvadmrV5gS4dqsc5G0sBbikMvJKafatrAt0xF3yV1.2dYCr5+bf5kP0CTBunVSBY+tshtRtQ78jxR9am2DvlA
All the best
Oli -
@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! :-)