Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5415

RE: SWT: How to remove a CTabItem from CTabFolder.

From sumitsingh <sumitsingh_1234@yahoo.co.in>
Subject RE: SWT: How to remove a CTabItem from CTabFolder.
Newsgroups comp.lang.java.gui
References <eeeef092.0408271644.5885830d@posting.google.com>
Message-ID <VrSdnbRsJddhJGrPnZ2dnUVZ_v-dnZ2d@giganews.com> (permalink)
Date 2014-02-09 11:25 -0600

Show all headers | View raw


The only way that I know of is to dispose the CTabItem for the tab you want to hide and then create a new CTabItem when you want to show it. Sort of,

 CTabFolder folder = new CTabFolder(parent, SWT.NONE);
 Label label = new Label(folder, SWT.NONE);
 label.setText("Hello");
 CTabItem item = new CTabItem(folder);
 item.setControl(label);
 // Hide it
 item.dipose();
 // show it again
 CTabItem item = new CTabItem(folder);
 item.setControl(label);

--http://compgroups.net/comp.lang.java.gui/swt-how-to-remove-a-ctabitem-from-ctabfold/353304

Back to comp.lang.java.gui | Previous | Next | Find similar


Thread

RE: SWT: How to remove a CTabItem from CTabFolder. sumitsingh <sumitsingh_1234@yahoo.co.in> - 2014-02-09 11:25 -0600

csiph-web