on 05-30-2005 6:52 AM
Can any one pls tell me how to wrap the text on a confirmation dialog?
thanks in advance.
regards
Lakshminarayanan.V
Hi,
please set the window size to a fixed width of the confirmation dialog using the handle returned from the creation of the dialog. Please use the methods specified for IWDWindow in the javadoc.
Regards Joerg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please open an OSS message.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Currently this is simply not possible. Probably later TextView UI element will be enhanced to support this (at least, this feature is at "Whish List", search this forum for word POLL), and confirmation dialogs will inherit desired behavior automatically.
For now you have to create your own component and use it pop-over window as confirmation dialog. In your component you may either use TextArea for multi-line display (quick and ugly) or split string into several context attributes and display them using several TextView UI elements (either dynamically created or pre-created till some reasonable maximum, say, 5 lines <-> 5 controls)
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
Try this piece of code, the variable 'dialog' will contain the text you want to wrap.
String dialog = "Confirm Reservation";
IWDConfirmationDialog confirm =
wdThis.wdGet<componentcontroller>().wdGetAPI().getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers(eventhandlername),buttonname);
confirm.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers(eventhandlername),buttonname);
confirm.open();
hope this will works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.