OK, I did the basics, added the library and created a Tab Control.
In the code I have
Tabs.New1 ( "TicketPrices", 0, 0, TicketPrices.Width, TicketPrices.Height ) ' TicketPrices being the form
Tabs.AddTabPage ( "Prices" )
Tabs.AddTabPage ( "Sales" )
Tabs.AddTabPage ( "Till" )
Tabs.AddControl ( "PricesPanel", 0, 0, 0 )
Tabs.AddControl ( "SalesPanel", 1, 0, 0 )
Tabs.AddControl ( "TillPanel", 2, 0, 0 )
Tabs.SelectedIndex = 0
The panels are the same size.
I also tried having a sub
Sub Tabs_SelectionChanged
Select Tabs.SelectedIndex
Case 0
PricesPanel.BringToFront
Case 1
SalesPanel.BringToFront
Case 2
TillPanel.BringToFront
Case Else
End Select
End Sub
But all I ever see is the controls located on the first panel, PricesPanel, regardless of which Tab I click.
Is it relevant that PricesPanel, itself has 3 panels containing the various other controls? I have all the controls set to have their panel's as parent. The compiler objects if I low level edit the file to try make the subsidiary panels have the main panels as parents, so they have the form as parent instead. That may be the problem.
I've just got a table on each of the other panels, SalesPanel and TillPanel just to have some thing to see as I haven't got as far as doing those for real. But they never appear.
Is there a problem with making the three main panels the full size of the form?
OK, stop laughing, just tell me what I didn't do please. :sign0085:
Ta.
In the code I have
Tabs.New1 ( "TicketPrices", 0, 0, TicketPrices.Width, TicketPrices.Height ) ' TicketPrices being the form
Tabs.AddTabPage ( "Prices" )
Tabs.AddTabPage ( "Sales" )
Tabs.AddTabPage ( "Till" )
Tabs.AddControl ( "PricesPanel", 0, 0, 0 )
Tabs.AddControl ( "SalesPanel", 1, 0, 0 )
Tabs.AddControl ( "TillPanel", 2, 0, 0 )
Tabs.SelectedIndex = 0
The panels are the same size.
I also tried having a sub
Sub Tabs_SelectionChanged
Select Tabs.SelectedIndex
Case 0
PricesPanel.BringToFront
Case 1
SalesPanel.BringToFront
Case 2
TillPanel.BringToFront
Case Else
End Select
End Sub
But all I ever see is the controls located on the first panel, PricesPanel, regardless of which Tab I click.
Is it relevant that PricesPanel, itself has 3 panels containing the various other controls? I have all the controls set to have their panel's as parent. The compiler objects if I low level edit the file to try make the subsidiary panels have the main panels as parents, so they have the form as parent instead. That may be the problem.
I've just got a table on each of the other panels, SalesPanel and TillPanel just to have some thing to see as I haven't got as far as doing those for real. But they never appear.
Is there a problem with making the three main panels the full size of the form?
OK, stop laughing, just tell me what I didn't do please. :sign0085:
Ta.