HISE Logo Forum
    • Categories
    • Register
    • Login

    drawAnalyserBackground = border around floating tile

    Scheduled Pinned Locked Moved Bug Reports
    11 Posts 4 Posters 464 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      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

      clevername27C 2 Replies Last reply Reply Quote 0
      • clevername27C
        clevername27 @Oli Ullmann
        last edited by

        @Oli-Ullmann Did you explicitly tell it not to draw a border in your paint routine?

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @clevername27
          last edited by

          @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?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          clevername27C 1 Reply Last reply Reply Quote 0
          • clevername27C
            clevername27 @d.healey
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • clevername27C
              clevername27 @Oli Ullmann
              last edited by

              @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)
              {
              	 
              });
              
              Oli UllmannO 1 Reply Last reply Reply Quote 0
              • Oli UllmannO
                Oli Ullmann @clevername27
                last edited by

                @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?

                d.healeyD clevername27C 2 Replies Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Oli Ullmann
                  last edited by

                  @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.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  1 Reply Last reply Reply Quote 1
                  • clevername27C
                    clevername27 @Oli Ullmann
                    last edited by

                    @Oli-Ullmann I default to @d-healey.

                    1 Reply Last reply Reply Quote 0
                    • oskarshO
                      oskarsh
                      last edited by

                      I just use a panel and offset floating tile -1 -1 to get rid of the border

                      d.healeyD Oli UllmannO 2 Replies Last reply Reply Quote 2
                      • d.healeyD
                        d.healey @oskarsh
                        last edited by

                        @oskarsh Clever :)

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        1 Reply Last reply Reply Quote 0
                        • Oli UllmannO
                          Oli Ullmann @oskarsh
                          last edited by

                          @oskarsh oh yeah, good solution! Thanks for the idea! :-)

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          26

                          Online

                          1.8k

                          Users

                          12.0k

                          Topics

                          104.5k

                          Posts