... maybe you should try adding the content in a Panel and that panel
add it to another panel (HorizontalPanel maybe for both) and "hack"
the style of the last one adding overflow:hidden
TabPanel tp = new TabPanel();
tp.setWidth("500px"); // or whatever
Widget content = ... // the realcontent
HorizontalPanel hp1 = new HorizontalPanel();
hp1.setWidth("100%");
hp1.add(content);
HorizontalPanel hp2 = new HorizontalPanel();
hp2.setWidth("100%");
hp2.getElement().getStyle().setProperty("overflow","hidden");
tp.add("tab1",hp2);the trick will be to find out when the inner panel has bigger width than the outer panel(or the "deck" of the tabpanel) an then show the buttons and on the buttons onClick() you'll do something like hp2.getElement ().setScrollLeft(incremented/decremented value) ... hope it will be any help good luck On Jan 20, 8:15 pm, blopes <[email protected]> wrote: > Hi! > > I would like to add some kind of slide items to the TabPanel TabBar . > > I am adding dynamically labels to the tab and when the length of all > added labels is greater than the tab width > the symbol less(<) and greater(>) should appear in each side to be > able to scroll left and right. Or instead of that an scroll bar. I > would prefer the < and >. > > Do you have any idea how to do it ? > > Thank you, > > Bruno -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
