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.