Topic: richedit color

hello MVD funs
please is it possible to change the backround color of an richedit?
thank you

2 (edited by k245 2022-04-29 06:15:39)

Re: richedit color

I solved this problem by loading an HTML document before starting work.


begin
  // загрузить фон нужного цвета
  frmImageEdit.redTags.LoadHTML('back.pas');
  // организовать цвет текста и шрифт
  frmImageEdit.redTags.InsertTextEx(' ',$FFFFFF,11,0,'Segoe UI');
end.

back.pas:

<html>
 <head>
  <style>
   BODY { 
    font-size: 11; 
    font-family: Segoe UI; 
    color: #FFFFFF; 
    background: #394264
   }
  </style>
 <body bgcolor="#394264">
 </body>
 
</html>

Result:

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&amp;item=8607&amp;download=0

Post's attachments

Attachment icon img-2022-04-29-09-12-04.png 614.17 kb, 59 downloads since 2022-04-29 

Визуальное программирование: блог и телеграм-канал.

Re: richedit color

thank you 
i will try it

4 (edited by hichame 2022-05-01 03:19:19)

Re: richedit color

Thank you a second time  it works .