Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:34:54+00:00 2026-06-09T21:34:54+00:00

Tabris-Experts, currently I want to use CTabFolder to have the ability to close CTabItems.

  • 0

Tabris-Experts,

currently I want to use CTabFolder to have the ability to close CTabItems. Is it correct that CTabFolder is not supported in Tabris until now?

Using following code …

public class TabFolderExample extends Shell {

public TabFolderExample(Display display) {
    super(display, SWT.NO_TRIM);
    createContents();
}

private void createContents() {
    setMaximized(true);
    setLayout(new FillLayout(SWT.VERTICAL));
    createTabFolder();
    createCTabFolder();
}

private void createTabFolder() {
    final TabFolder tabFolder = new TabFolder(this, SWT.NONE);

    final TabItem tab0 = new TabItem(tabFolder, SWT.NONE);
    tab0.setText("Tab0");
    Text text0 = new Text(tabFolder, SWT.SINGLE | SWT.LEAD | SWT.BORDER);
    text0.setText("Content Tab0");
    tab0.setControl(text0);

    final TabItem tab1 = new TabItem(tabFolder, SWT.NONE);
    tab1.setText("Tab1");
    Text text1 = new Text(tabFolder, SWT.SINGLE | SWT.LEAD | SWT.BORDER);
    text1.setText("Content Tab1");
    tab1.setControl(text1);
}

private void createCTabFolder() {
    final CTabFolder tabFolder = new CTabFolder(this, SWT.NONE);

    final CTabItem tab0 = new CTabItem(tabFolder, SWT.NONE);
    tab0.setText("Tab0");
    Text text0 = new Text(tabFolder, SWT.SINGLE | SWT.LEAD | SWT.BORDER);
    text0.setText("Content Tab0");
    tab0.setControl(text0);

    final CTabItem tab1 = new CTabItem(tabFolder, SWT.NONE);
    tab1.setText("Tab1");
    Text text1 = new Text(tabFolder, SWT.SINGLE | SWT.LEAD | SWT.BORDER);
    text1.setText("Content Tab1");
    tab1.setControl(text1);
}

@Override
protected void checkSubclass() {
    // Disable the check that prevents subclassing of SWT components
}

}

I get this result on the iPad. The CTabFolder in the bottom is empty.

What do you suggest to work around this at the moment? I was thinking about StackLayout and Labels?

Best regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:34:56+00:00Added an answer on June 9, 2026 at 9:34 pm

    On the Tabris client for iOS, CTabFolder and TabFolder are (currently) the same.
    The “extended functionalities” of CTabFolder are not really applicable to the iOS default Tab/TabFolder UI. So to close a Tab you might want to rethink your user workflow for now.

    We will have a look at the CTabFolder again, and see if we might implement it like Tabs are implemented on Safari for iPad. But that will definitely be farther along the roadmap.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the tabris framework to develop cross platform mobile applications. What
I have a question about the Android Tutorial (Getting started with Tabris on Android
I am experimenting with tabris and am looking into the geo api at the
I'm using Ajax to dynamically populate a DIV. I have each page content stored
I started programing in language C, and I have some problems with reading text
I wrote a web application using Tabris. I set the style of the application
my question is about the future development of tabris. Is there any information about
I don't understand the output of NSLog for the array returned by a NSFetchRequest.
I'm trying to create an XML string and pass it to another method where
Given two strings of length n,P = p1...pn and Q = q1...qn, we define

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.