Page 1 of 1

tab page woes

PostPosted: Sun Feb 13, 2011 11:43 am
by Boudewijn
If I add a tab-control to a page and want more tabs to be available I would like to see all tabs. Even if there are no objects in the tab yet.

Re: tab page woes

PostPosted: Sun Feb 13, 2011 12:20 pm
by ROCLASI
Hi Boudewijn,

Boudewijn wrote:If I add a tab-control to a page and want more tabs to be available I would like to see all tabs. Even if there are no objects in the tab yet.

A tabpanel will only show tabs when it has a form attached to it.
So if you want to have tabs that doesn't show anything (i.e. an empty tab) then you need to put an empty form in there.

Hope this helps.

Re: tab page woes

PostPosted: Sun Feb 13, 2011 11:42 pm
by Boudewijn
it does not. a tabbed system is just another object. If I want to add that to a form I want to see it as I add it.

Re: tab page woes

PostPosted: Mon Feb 14, 2011 11:23 am
by jcompagner
make a tabless tabpanel with a number of buttons/labels above it.

the tabbed tabpanel in servoy (and java) wants to have the panel when you add a tab to them. Adding just the tabs is not possible.
But in servoy if you call elements.tabpanel.addTab() with a string as the form name. Then the form is not loaded yet. Thats only done when you click on the tab, So that is exactly what you describe.