cancel
Showing results for 
Search instead for 
Did you mean: 

DialogText

Former Member
0 Kudos

Hi,

Please teach the method of making it display to the first line in Dialogbox in "TEST" the second line as "Sample".

I want to put two lines in Dialogtext.

Could you mend the code below?

-


String dialogText = "Test" ; and "Sample"

IWDConfirmationDialog dialog = wdThis.wdGetSystemAdministrationController().wdGetAPI().

getWindowManager().createConfirmationWindow(dialogText,wdThis.wdGetAPI().getViewInfo().

getViewController().findInEventHandlers("Dialog_Add_Ok"),"Add");

dialog.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().

findInEventHandlers("Dialog_Add_Cancel"),"cancel");

dialog.open();

-


Regards,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Line breaks should work now in the dialog box as this has been fixed for the TextView element in some SP (13 or so).

So try as text "Test\nSample" or if this does not work try "Test\r\nSample".

Armin

former_member182372
Active Contributor
0 Kudos

Hi Armin,

I have SP14 and both ("Test\nSample" and "Test\r\nSample") doesn`t work as expected (multiple lines).

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

In TextView or in ConfirmationDialog?

Armin

former_member182372
Active Contributor
0 Kudos

Oops...missread your post...sorry....it is confirmation window.

Former Member
0 Kudos

Hi,

Thank you for teaching.

However, it is not possible to have done.

My having tried...

-


String dialogText ="Test\nSample";

and

String dialogText ="Test\r\nSample"

-


>In TextView or in ConfirmationDialog?

It is ConfirmationDialog.

Cannot it be done?

Regards,

Former Member
0 Kudos

Hi,

Thank you for teaching.

In ConfirmationDialog,Cannot it be done?

Regards,

Former Member
0 Kudos

BESS,

Seems like someone forget to add wrapping=true for TextView inside ConfirmationDialog. It looks like a bug...

VS

Former Member
0 Kudos

Hi,

Thank you.

Please teach to another when you receive intelligence.

Regards.

Former Member
0 Kudos

hi

if you need to wrap the text on the confiramtion dialog then one way is to set the size of the dialog box ( i mean the width ) it will wrap but it will be entirely based on the size you specify.

regards

vln

Former Member
0 Kudos

Lakshminarayanan,

Then text will "flow" according to size, but new line is "hard break", and this is a bit different.

VS

Former Member
0 Kudos

all you have to do is :

int width = 200;

int height = 100;

dialogWindow.setWIndowSize(width,height);

The text woudl automatically wrap according to the window size.

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi,

Don`t really know whether it is possible at all. If you have some specific requirements for confiramtion pop-up (like alignment, wrapping, additional elements like help link etc.) I would suggect you to create your own view with all appropriate elements and logic.

Best regards, Maksim Rashchynski.