how to work with UnderlineType?

General TRichView support forum. Please post your questions here
Post Reply
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

how to work with UnderlineType?

Post by alexandreq »

Hello Sergey

I inserted a code in DBSRichViewEdit1StyleConversion to add this, but it didn't work.

TEXT_SUBLINHADO_ESP: Begin
FontInfo.UnderlineType := SubTipoLinha;
FontInfo.UnderlineColor := SubTipoCor;
end;

this is from my button:

SubTipoLinha := rvutThickDashDotDotted;
SubTipoCor := clRed;
DBSRichViewEdit1.RichViewEdit.ApplyStyleConversion(13);


Could you give me an example how to work with it in your example?

http://www.trichview.com/support/files/reditss.zip

thanks
ALex
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Code: Select all

TEXT_SUBLINHADO_ESP: Begin 
  FontInfo.UnderlineType := SubTipoLinha; 
  FontInfo.UnderlineColor := SubTipoCor; 
  [color=red]FontInfo.Style := FontInfo.Style+[fsUnderline];[/color]
end; 
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Post by alexandreq »

thanks very much. Now I understood where was my mistake.

have a nice day
Alex
Post Reply