smoothmessage and HTMLText

hi


i've TMS Component Pack 8.2.0.0 and delphi seattle 

NOW when i assign TadvSmoothMessageDialog.HTMLText.Text:=MsgText i ve problem with special chars. Dialog windows became wrong little.
In last version changed <br> to <br /> with no compatibility !!!! OK ... now i see ':' do wrong message too ....

How can i solve the question with special chars ???

Bye

What 'special chars' do you refer to?
What exact HTML text  do you set for the message and what exact error do you see with this?

'ATTENZIONE... Impossibile connettersi al server dati. <br \>'+
        'Controllare la rete ed i parametri di connessione. Server/Porta impostata : '+HostIPAddresPort+' <br \>' +
        'Specifiche : ' + E.Message

note <br \> is not in standard html5 format ... but with this go fine, with <br /> go bad , i've a smaller dialog. <br> is not yet supported !!

I cannot see any issue here.
<br>, <br/> <br&gt; all insert a linebreak here.
<BR> is what we recommend to use:

http://www.tmssoftware.com/site/minihtml.asp

always 'any issue' !!! i ve sent a mail on info@...


sine version 8.2.0.0 i ve this problem bruno .... 

my heart explode !! BYE
I update to 8.3.00 but nothing ... now i get the string passed to a params and i noticed this : Socket Error # 10061'#$D#$A'  <------ wrong chars ???

Entire string :
'ATTENZIONE... Impossibile connettersi al server dati. <br>Controllare la rete ed i parametri di connessione. Server/Porta impostata : PlusSoft-PC:180 <br>Specifiche : Socket Error # 10061'#$D#$A'Connection refused.'

Did you test the project I have sent? 

I cannot see any problem with this test project, so please compare this project with your project.

it looks random .... there is any thing in the procedure i must set ?


Function TDMC_P.SmoothMessage(MsgTitle,MsgText:AnsiString; ButtonsText,Images:Array Of AnsiString;
                            ButtonsLayout:TAdvSmoothMessageDialogButtonLayout = blHorizontal;
                            UseLargeLayout:Boolean = False):Integer;
Var i:Smallint;
Begin
  If Length(ButtonsText) = 0 Then
    Exit;

  // ci mette lo stile dell'applicazione
  smdMsgBox.SetComponentStyle(AppStyler.Style);
  // blHorizontal, blVertical, Unit : AdvSmoothMessageDialog
  smdMsgBox.ButtonLayout:=ButtonsLayout;

  // NB : per tutte le immagini vedi componente DM.picMsgBox

  // la prima immagine ? sempre quella della finetra
  If Length(Images) > 0 Then
    smdMsgBox.Fill.Picture.Assign(picMsgBox.FindPicture(Images[0]));

  smdMsgBox.Caption:=MsgTitle;
  smdMsgBox.HTMLText.Text:=MsgText;

  smdMsgBox.Buttons.Clear();

  smdMsgBox.CaptionFont.Size:=10;
  smdMsgBox.ButtonFont.Size:=10;
  smdMsgBox.ButtonSpacing:=5;
  If UseLargeLayout Then Begin
    smdMsgBox.CaptionFont.Size:=14;
    smdMsgBox.ButtonFont.Size:=14;
    smdMsgBox.ButtonSpacing:=20;
  End;

  For i:=0 To Length(ButtonsText)-1 Do Begin
    With smdMsgBox.Buttons.Add Do Begin
      Caption:=ButtonsText;
      If UseLargeLayout Then
        Caption:='-    '+ButtonsText+'    -';
      ButtonResult:=i+1;  // mi ritorna il nr. di tasto premuto
      // le immagini dei bottoni stanno in sequenza dalla 2 in poi ...
      If Length(Images) > i+1 Then
        Picture.Assign(picMsgBox.FindPicture(Images[i+1]));

      ColorFocused:=clYellow;
      HoverColor:=$0095FFFF;
    End;
  End;

  // mi ritorna il nr. d'ordine del tasto premuto
  Result:=smdMsgBox.ExecuteDialog();
End;

Again: did you look at and tested the project I sent? It uses YOUR code to show the message and I sent a screenshot of how the result looks here (correct)

bruno its very strange .... its random .... i look and upd my code with your ... the problem persist !!!

If you want we can do a team viewer assistance to show it ... Bye

or give me a phone number i will send you a video by whatapps !

Solved : creating and detroying at run time smdMsgBox ... but it is not normal !!

I can only suspect it must be something in the TAdvSmoothMessageDialog property settings and to be able to investigate that, we'd need your property settings. As demonstrated, with the default settings, there is no issue.