DFGUI -- Label Switch Tabstrip, dfgui -- tabstrip
It is indeed a pity that DFGUI is not updated.
It focuses on Examples/Containers/TabContainer. unity is the use of Tab.
The function is simple, that is, to change the Tag content.
Let's take a look at the structure:
OK, dfTabstrip is the Tag dfTabContainer is the content.
The connection between them is that the dftabstriiner is referenced in the dfTabstrip.
In this way, the relationship is established between the two parent boxes.
In dfTabstrip, the sub-Tab sets its own group.
It means that all fathers are dfTabstrip.
However, you also need to sort out the order between the brothers? Who is behind?
Use z-order
The greater the z-order, the more backward the sorting.
OK. Now, all tabs are ready.
How does page know its corresponding tab?
It also depends on z-order.
In this way, you will correspond to your own tab.
The official example is a bit messy, but a slight modification to the parameter will result in the effect.