WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   nested tabpanel (https://forum.worldviz.com/showthread.php?t=5684)

JudithVerstegen 04-08-2016 07:12 AM

nested tabpanel
 
Hi,

I am trying to make a tabpanel, in which one of the panels is also a tabpanel, i.e. a nested tabpanel. But something strange happens with the alignment. When I run the code below, at first the panels are aligned on the lower right of the main panel. Only once I have clicked each one of them, they shift towards the upper left. I want them aligned upper left from the start. I am using Vizard 5.3 64-bit.


Code:

import viz
import vizdlg

viz.go()

menu = vizdlg.TabPanel()
submenu = vizdlg.TabPanel()
for aTabNr in range(1,5):
    panel = viz.addTexQuad(size=150)
    submenu.addPanel(str(aTabNr), panel, align=vizdlg.ALIGN_LEFT_TOP)

menu.addPanel('subMenu', submenu, align=vizdlg.ALIGN_LEFT_TOP)
viz.link(viz.RightTop, menu, offset=(-300,-50,0))



All times are GMT -7. The time now is 05:22 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC