on 02-05-2007 4:02 PM
Hi,
how is it possible to set the colCount-Value for a groupBox by run time. I tried with the following code:
IWDGroup theGroupBox = (IWDGroup) view.getElement("Group");
IWDLayout layout = (IWDGridLayout) theGroupBox.createLayout(IWDGridLayout.class);
layout.setcolCount(5) <-- doesn't work
regards,
Sharam
Hi,
I solved the problem with the following piece of code:
IWDGroup theGroupBox = (IWDGroup) view.getElement("Group");
IWDGridLayout layout = (IWDGridLayout) theGroupBox.createLayout(IWDGridLayout.class);
int i = Integer.parseInt(wdContext.currentThumbnailHorizontalElement().getText());
layout.setColCount(i);
regards,
Sharam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sharam,
Did you try set a context value?
Regards,
Luciano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.