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

Change Layout in ScrollContainer

Hi,

I would like to change dynamically the layout of a ScrollContainer that I created dynamically:

IWDScrollContainer shlpcontainer = (IWDScrollContainer)view.createElement(IWDScrollContainer.class, "name");

I would like to set the layout to GridLayout and be abble to set also the ColCount.

Thank for the help,

Joseph

Message was edited by: joseph fryda

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 19, 2005 at 02:25 PM

    Hi Joseph,

            IWDScrollContainer shlpcontainer = (IWDScrollContainer)view.createElement(IWDScrollContainer.class, "name");
    	IWDGridData gdInputFields =
    		(IWDGridData) shlpcontainer.createLayoutData(IWDGridData.class);
    		IWDGridLayout glInputFields =
    			(IWDGridLayout) shlpcontainer.createLayout(IWDGridLayout.class);
    
    		glInputFields.setColCount(4);
    		glInputFields.setCellSpacing(3);

    Hope the above code helps you. If you require any further clarification let me know.

    Regards,

    Santhosh.C

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2005 at 02:36 PM

    thank you

    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.