on 05-19-2005 3:21 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not quite correct.
The layout data of the scroll container refer to the layout of its <b>parent </b>container (if any) and has nothing to do with the layout of the container itself.
So if you set the layout of a container to e.g. GridLayout, you have to create GridData for the <b>children </b>of this container, not the container itself.
Armin
thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.