CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

IWCGMessageDlg - insert line in dialog est

by jredoc » 27 Aug 2014 05:24

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
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34

by Alexander Bulei » 27 Aug 2014 09:24

Hi jredoc,

It will be available in next build.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by jredoc » 27 Aug 2014 22:51

That is great.

What will be the format to insert the line?

TIA

John
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34

by Alexander Bulei » 28 Aug 2014 09:59

Hi jredoc,

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

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by jredoc » 06 Sep 2014 03:37

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
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34

by Jorge Sousa » 08 Sep 2014 14:46

Hi

Can you submit a test case please? t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to IWCGJQMessageDlg

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.