Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TabSet.setCanCloseTabs and Tab.setIcon conflict

    if I set setCanCloseTabs(true) for TabSet, then the icons for Tab disappear
    Code:
    public class TestBug implements EntryPoint {
    
        public void onModuleLoad() {
            TabSet templatesTabSet = new TabSet();
            templatesTabSet.setTabBarPosition(Side.TOP);
            templatesTabSet.setWidth("100%");
            templatesTabSet.setHeight("*");
            templatesTabSet.setCanCloseTabs(true);
    
            String[] titles = new String[] {"tab 1", "tab 2", "tab 3"};
            for(String title:titles) {
                    Tab tab = new Tab(title, "[SKINIMG]Dialog/say.png");
                    tab.setPaneMargin(0);
                    templatesTabSet.addTab(tab);
            }
    
            templatesTabSet.draw();
       }
    }
    SmartClient Ajax RIA system
    Version v12.1p_2023-05-19/Pro Deployment (2023-05-19)
    Last edited by Hirn; 11 Nov 2023, 07:44.

    #2
    Is there any news on this issue?

    Comment


      #3
      Hello. This is a documented limitation, although if it's important to you, the Feature Sponsorship program would allow you to expand functionality here, so that tabs could have multiple functional icons without the need to use Canvas.imgHTML() to create your own interactive icons.

      Comment


        #4
        It would be nice to add to the documentation the impossibility of using these two icons at the same time

        Comment

        Working...
        X