Jump to content

Recommended Posts

Posted

Hi all,

How do i can to make a word wrap like an insertion of newline(#10) or CR(#13) to text was displayed by using ShowMessage and MessageDlg functions?

Posted

You can use "<br/>" that is the CR for the web. I use the following format:

 


procedure ShowMessageWithAdInfo( const aMsg, aAdInfo: String );
 begin
  ShowMessage(aError + '<br/><div align="center"> with the additional info:</div><br/>' + aAdInfo);
 end;

 

It works good for the web mode. So if you need it for both mode you have to check the mode and use CrLf or <br/>

 

PS: The <div> is used to center the middle message.

Posted

BTW, and this is for Farshad or other that know about it:

 

When I use MessageDlg with mtError, mtConfirmation, mtXXXX, appear a specific icon together with the message in VCL applications. It must appear in web applications??? Just to know.

Posted

I was checking my previous reply and I found that when you call MessageDlg with that the message dialog appear good, but after first time the dialog appear so small and the text is wordwrapped vertically. Why???? What is wrong????

 

At the same time the CallBack Proc is not working.

25.1- Error en los Mensajes.rar

Posted

You can use "<br/>" that is the CR for the web. I use the following format:

 


procedure ShowMessageWithAdInfo( const aMsg, aAdInfo: String );
 begin
  ShowMessage(aError + '<br/><div align="center"> with the additional info:</div><br/>' + aAdInfo);
 end;

 

It works good for the web mode. So if you need it for both mode you have to check the mode and use CrLf or <br/>

 

PS: The <div> is used to center the middle message.

Thank you. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...