Skip to Content
author's profile photo Former Member
Former Member

Dynamic creation of TabStrips

Hi

I am trying to create a dynamic tabstrip control. When i try to add UI elements Label and Inputfield, the only visible uielement on the tab is the Inputfield. Can any one provide some help on this.

thanks

Ravi

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2004 at 02:49 AM

    hi armin

    Thanks. I will try it out and let u know.

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2004 at 10:55 PM

    How do you add the content to a tab? It should look like this:

    IWDTabStrip tabstrip = ...;
    IWDTab tab = (IWDTab) view.createElement(IWDTab.class, "tab");
    IWDScrollContainer content = (IWDScrollContainer) view.createElement(IWDScrollContainer.class, "tabContent");
    IWDLabel label = (IWDLabel) view.createElement(IWDLabel.class, "label");
    IWDInputField field = (IWDInputField) view.createElement(IWDInputField.class, "field");
    content.addChild(label);
    content.addChild(field);
    tab.setContent(content);
    tabstrip.addTab(tab);
    // etc.  
    

    Don't forget to assign a suitable layout to the content container and to assign suitable layout data to its children.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.