on 05-13-2006 9:12 AM
Hi,
I want to create TextView or Lable dynamically. And I want to display any text in that Element. Please check the fillowing whcih i have tried....
I wrote the code in <b>wdDoModifyView</b>
IWDTextView txt=(IWDTextView)view.createElement(IWDTextView.class,"Ostate");
txt.setText("TextView");
Please do the need full as soon as possbile.please....
Thanks and Regards
Praveen.
hi
for creation of text view
in domodify
if (firstTime)
{
IWDTransparentContainer con=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
// CREATION OF TEXTVIEW
IWDTextView textview1=(IWDTextView)view.createElement(IWDTextView.class,"textview");
textview1.setEnabled(true);
textview1.setText("Dynamic created Textview");
con.addChild(textview1);
// creation of label
IWDLabel label3=(IWDLabel)view.createElement(IWDLabel.class,"label11");
label3.setText("hi");
con.addChild(label3);
}
hope this helps,
regards,
arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
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.