Jump to content

Message Dialog Word Wrap


thecrgrt
 Share

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

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

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

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.

 Share

×
×
  • Create New...