on 03-09-2009 12:00 PM
Hi Experts,
Can anybody please tell me how to display three or multiple separate sentences in a Confirmation
Dialog box. I am able to diaplay two sentences in a single line but the dialog box is getting stretched a
lot. So i want to diaply them in separate sentences onr below the other.
Thanks a lot.
Hi Srini
Try to use
"\n" as the line-separator.
e.g.
String dialogText = "line1 \n line two \n line three";
Let me know if you have any issues
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi shrini...
you want to number of line display in one dialog box ..
you have to declare one Strinh like thiss as below..
have to create one event method as OK...which is visible in eventhandler code as
findInEventHandlers("OK");
create one method in component aas showBox....
public void showBox( )
{
//@@begin showBox()
String dialogText="welocme to""\n""India""\n".........................
IWDEventHandlerInfo info=wdControllerAPI.getControllerInfo().findInEventHandlers("OK");
IWDConfirmationDialog win=wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,info,"OKK");
win.open();();
}
thanks
jati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
1. Only prerequisite is UI element should be TextView ,So by using simple "\n " and + operator u can achieve this
For Exanple
String text = "abcd"+"\n"+"abhddb"+"\n";
wdContext.currentContextElement().setLabel(text);
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.