Page 1 of 1

IWCGMessageDlg - insert line in dialog est

PostPosted: 27 Aug 2014 05:24
by jredoc
Hello

I would like to insert two carriage returns in the text of a IWCCGMessageDlg. I have tried <BR/> (see below) as well as #13 and &#13 to no avail.

procedure TIWCGFrame_Confirm.IWCGJQButtonChangePayorJQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
tempDlg: TIWCGJQMsgDialog;
begin
tempDlg := IWCGMessageDlg('This will restore ALL of the payor records to their original state.' + '<BR/> <BR/>' +
'Are you certain that you wish to clear the changes made to the payor records.', mtConfirmation,[mbYes, mbNo],
procedure(ADlg: TIWCGJQMsgDialog; AModalResult: TModalResult)
begin
etc.
end
);

tempDlg.Height := 200;
tempDlg.Width := 310;
end;

Does anyone have a suggestion
TIA

John

Re: IWCGMessageDlg - insert line in dialog est

PostPosted: 27 Aug 2014 09:24
by Alexander Bulei
Hi jredoc,

It will be available in next build.

Best Regards.

Re: IWCGMessageDlg - insert line in dialog est

PostPosted: 27 Aug 2014 22:51
by jredoc
That is great.

What will be the format to insert the line?

TIA

John

Re: IWCGMessageDlg - insert line in dialog est

PostPosted: 28 Aug 2014 09:59
by Alexander Bulei
Hi jredoc,

The new method accept html tags, so <br/>.

Best Regards.

Re: IWCGMessageDlg - insert line in dialog est

PostPosted: 06 Sep 2014 03:37
by jredoc
Hello

The support for HTML tags works great, thanks. However, in the change log for 2.3.0.36 it states:
IWCGJQMessageDlg
- Added: new method IWCGMessageDlgEx - do same as IWCGMessageDlg but with auto-height feature
- Added: support of html tags in message

If in the code for this conversations original post, I add two line breaks to insert a blank line and utilize the autoheight property (rather than tempDlg.Height), the autoheight does not account for the inserted line resulting from the HTML code. The result is that the last line of the message is not displayed within the initial dialog box height. .

TIA

John

Re: IWCGMessageDlg - insert line in dialog est

PostPosted: 08 Sep 2014 14:46
by Jorge Sousa
Hi

Can you submit a test case please? t.i.a.