HISE Logo Forum
    • Categories
    • Register
    • Login

    Children panels don't return their global position

    Scheduled Pinned Locked Moved Feature Requests
    14 Posts 4 Posters 544 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.
    • clevername27C
      clevername27 @ustk
      last edited by

      @ustk They'll be easier to deal with when they're older.

      ustkU 1 Reply Last reply Reply Quote 5
      • ustkU
        ustk @clevername27
        last edited by ustk

        @clevername27 That's not what we're saying around here… 😅

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 4
        • ustkU
          ustk
          last edited by

          @Christoph-Hart any possibilities here?

          Can't help pressing F5 in the forum...

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @ustk
            last edited by

            @ustk said in Children panels don't return their global position:

            @Christoph-Hart any possibilities here?

            cant you work it out form the parent position?

            HISE Development for hire.
            www.channelrobot.com

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @Lindon
              last edited by

              @Lindon This is a possibility indeed but I have children of children of children... making all this a bit convoluted

              Can't help pressing F5 in the forum...

              LindonL d.healeyD 2 Replies Last reply Reply Quote 0
              • LindonL
                Lindon @ustk
                last edited by

                @ustk its just a recursive search backwards isnt it?

                HISE Development for hire.
                www.channelrobot.com

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

                  @ustk What about storing their positions as you add them? Then you can just look them up by ID.

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

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @d.healey
                    last edited by ustk

                    @d-healey @Lindon Thanks guys, yep these ideas could work but I'm just letting this down because it's meant to be integrated into a browser, and the x position has to update since it is scrollable...

                    This was for making a panel following a child in the context of losing the focus we talked about 2 days ago
                    It works great for static components but is a pain for scrollable children so I'm going broadcaster instead of this hacky panels method

                    Can't help pressing F5 in the forum...

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

                      @ustk Why not use a viewport?

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

                      ustkU 2 Replies Last reply Reply Quote 0
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey all of this is inside a viewport already, a logic approach for a browser

                        Can't help pressing F5 in the forum...

                        1 Reply Last reply Reply Quote 0
                        • ustkU
                          ustk @d.healey
                          last edited by

                          @d-healey I finally went with the broadcaster method and it works great even if I have 323 components connected...

                          Can't help pressing F5 in the forum...

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

                            @ustk That's a lot of children, you must be proud :p

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

                            ustkU 1 Reply Last reply Reply Quote 1
                            • ustkU
                              ustk @d.healey
                              last edited by ustk

                              @d-healey Actually the broadcaster isn't a solution... because it is also called from the components that are below the "label", making it react when it shouldn't (in my case lose the focus when you simply want to move the cursor or double-click).
                              That mouse click isn't "cut" when components are above
                              @Christoph-Hart were right, the focus system is a can of worm...

                              Can't help pressing F5 in the forum...

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

                              16

                              Online

                              1.8k

                              Users

                              12.1k

                              Topics

                              105.3k

                              Posts