on 01-30-2006 1:16 PM
Hi,
I try to create a dynamic group, but it is not visiable!
I put the following sourch in to wdDoModifyView;
if (!firstTime) {
IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDGroup group = (IWDGroup)view.createElement(IWDGroup.class,"NewGroup");
IWDLayout layout = (IWDLayout)group.createLayout(IWDGridLayout.class);
container.addChild(group);
IWDTextView travel1 = (IWDTextView)view.createElement(IWDTextView.class,"Textview1");
travel1.setText(" Travel Expenditure :");
IWDLayoutData data1 = (IWDLayoutData)travel1.createLayoutData(IWDGridLayout.class);
travel1.setDesign(WDTextViewDesign.HEADER3);
container.addChild(travel1);
}
Can someone tell me what I do wrong!
Kind Regards,
Richard
Richard,
Additionally, if you are adding TextView to group then:
IWDTextView travel1 = (IWDTextView)view.createElement(IWDTextView.class,"Textview1");
travel1.setText(" Travel Expenditure :");
IWDLayoutData data1 = (IWDLayoutData)
/* Change here -- IWDGridLayout.class -> IWDGridData.class */
travel1.createLayoutData(IWDGridData.class);
travel1.setDesign(WDTextViewDesign.HEADER3);
/* Change here -- container -> group */
group.addChild(travel1);
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Richard,
"if (!firstTime)" seems to be an error -- try the reverse "if (firstTime)"
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
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.