HISE Logo Forum
    • Categories
    • Register
    • Login

    Bizarre situation with component creation order

    Scheduled Pinned Locked Moved Scripting
    2 Posts 1 Posters 111 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by VirtualVirgin

      I have three components being created back to back:

      local dataTableContainer = Content.addPanel(namePrefix + "DataTableContainer", 0, 0);
      local dataTable = Content.addViewport(namePrefix + "DataTable", 0, 0);
      local dataTableClickHeader = Content.addPanel(namePrefix + "DataTableClickHeader", 0, 0);
      

      This has been in the script for weeks and working fine for creating the proper order of the components in the Component List.

      Today, it is now creating them in the wrong order:

      Screenshot 2025-05-02 at 11.44.16 AM.png

      The dataTableClick header always needs to be created last here, so it can be in the proper ZLevel (above the dataTable).

      I have no clue how this has happened, and hence I am not sure what would fix the creation order.
      Ideas?

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/

      VirtualVirginV 1 Reply Last reply Reply Quote 0
      • VirtualVirginV
        VirtualVirgin @VirtualVirgin
        last edited by

        @VirtualVirgin
        Ok, I solved it.
        The issue had to do with the order that the components were being then assigned to the parent container, which effects their order in the Component List.

        You can listen to my orchestral mockups here:
        https://www.virtualvirgin.net/

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

        25

        Online

        1.7k

        Users

        11.9k

        Topics

        103.4k

        Posts