CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

IWCGMessageDlg Autosize

by feland » 03 Dec 2015 12:03

Hi,

I used the following instruction to see a error message.
Code: Select all
IWCGMessageDlg('EXCEPTION: Error in btnInsertJQButtonOptionsClick: ' + e.Message, mtError, [mbOK], nil);


But if a message text in more long i obtain the result in picture. How can i solve my problem??

Best Regards,
feland
You do not have the required permissions to view the files attached to this post.
feland
 
Posts: 89
Joined: 15 Jun 2015 15:12

by Alexander Bulei » 03 Dec 2015 18:52

Hi feland,

In this case, you need create and customize the dialog by yourself.
Here you have the simple example:

delphi code
procedure TIWForm10.IWCGJQButton2JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
MyDlg: TIWCGJQMsgDialog;
begin
MyDlg:= IWCGCreateMessageDialog('<long-message-here>',mtError,[mbYes], nil);
MyDlg.JQDialogOptions.AutoHeight:= True;
MyDlg.Label_.AutoSize:= True;
MyDlg.Label_.StyleRenderOptions.RenderPosition:= False;
MyDlg.Label_.StyleRenderOptions.RenderSize:= False;
MyDlg.Label_.StyleRenderOptions.RenderPadding:= False;
MyDlg.Label_.StyleRenderOptions.RenderBorder:= False;
MyDlg.Label_.Css:= MyDlg.Label_.Css + ' ui-dialog-label-autosize';
MyDlg.AjaxReRender(True,False);
end;


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 feland » 04 Dec 2015 17:18

Don't work.

I insert this string to test 'rteywdfiywdfidwfitweyiftewirtfwiertfiewtfwerilti9ròuewirgweriògyeoòrugyweoòruruerguòewroiguyweilrògu'
feland
 
Posts: 89
Joined: 15 Jun 2015 15:12

by Alexander Bulei » 04 Dec 2015 17:19

Hi feland,

I insert this string to test 'rteywdfiywdfidwfitweyiftewirtfwiertfiewtfwerilti9ròuewirgweriògyeoòrugyweoòruruerguòewroiguyweilrògu'


Of course your message will contain "spaces". lol :D

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 feland » 10 Dec 2015 10:45

Thanks :D
feland
 
Posts: 89
Joined: 15 Jun 2015 15:12


Return to IWCGJQMessageDlg

cron

Who is online

Users browsing this forum: No registered users and 0 guests

Contact Us.