TabPanel bugs

I create a tabpanel,insert and embedd two or more containerconcrol into it.
no matther how I click the tabpanel… the PanelIndex would not change.

I trace by msgbox

MsgBox str(TabPanel1.PanelIndex)+":"+str(TabPanel1.PanelCount)+":"+str(TabPanel1.TabPanelIndex)+":"+str(TabPanel1.TabIndex)

PageIndex is always 0.
TabPanelIndex is always 1
TabIndex is always 0

the Only correct one is Pagecount.

tabpanelindex is not for knowing what page of a tab panel is currently showing
its a property for an embedded control so it knows which tab, out of many, its on

tabindex is for knowing a controls tab order - again not for knowing what tab of a tab panel is showing
if you have lots of controls that are in the tab order then they will have a tab index (textfields, textareas, etc)
http://documentation.xojo.com/index.php/RectControl.TabIndex

panel index is, as the documentation says, http://documentation.xojo.com/index.php/Control.PanelIndex
is a property for an embedded control so it knows which tab, out of many, its on

for knowing what tab / page of a tabpanel or pagepanel is currently showing you use “value”
http://documentation.xojo.com/index.php/PagePanel.Value

thanks norman.