Hi all,

I am working on a panel with a CardLayout which is formerly a
TabPanel. So it looks like a wizard with previous and next buttons.Now
in one of the panels or page I have a TabPanels that shows the
selected materials of the user per tab. The problem is when I have
many tabs that won't fit anymore in the tab panel area, the scroll bar
doesn't show which is expected to show. This happened when I used
CardLayout. I already have the setEnableTabScroll() but still won't
succeed. I have used the doLayout() method of the tabPanel but was not
also successful.

//=================================
tabPanel = new TabPanel();
                tabPanel.setResizeTabs(true);
                tabPanel.setMinTabWidth(115);
                tabPanel.setTabWidth(135);
                tabPanel.setEnableTabScroll(true);
                //tabPanel.setAutoScroll(true);//-->error
               tabPanel.setWidth(700);//   450->600
               // tabPanel.setAutoHeight(true);
               // tabPanel.setAutoWidth(true);
                tabPanel.setHeight(700);  //   250-> 700
                addTab(null,"default");
                //tabPanel.setActiveTab(0);

              tabPanel.addListener(new TabPanelListenerAdapter() {
                    public void onContextMenu(TabPanel source, Panel
tab, EventObject e) {
                        showMenu(tab, e);
                    }
                });

//============================================
         private Panel addTab(Panel intendedUseform,String tabTitle_loc) { //
test data only
                Panel tab = new Panel();
                tab.setAutoScroll(true);
                tab.setTitle(tabTitle_loc);
                System.out.println(">>inside addTab... tabTitle_loc = " +
tabTitle_loc +" tab.getId() = " +tab.getId() );
                tab.setIconCls("tab-icon");
                if(tabTitle_loc.equals("default")){
                        tab.setHtml("<br/><br/>" + getBogusMarkup());
                        //intendedUseform.setId(tab.getId());
                }else{
                tab.add(intendedUseform);
                }
                tab.setClosable(false);//change true to false
                tabPanel.add(tab);
                tabPanel.doLayout();//to show scrollbar
                return tab;
            }

//============================================

I hope you can share some ideas regarding this matter.

Thanks,
Lanz

-- 
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en.

Reply via email to