Jump to content

Message Dialog Word Wrap


thecrgrt

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...