Page 1 of 2
Bug in RichEditBox : backgroundcolor
Posted: Wed May 28, 2014 4:00 pm
by serge_girard
Hello,
It looks like saving a text from richeditbox doesn't save the choosen backgroundcolor.
Greetings, Serge
Re: Bug in RichEditBox : backgroundcolor
Posted: Wed May 28, 2014 4:55 pm
by Javier Tovar
You can upload a demo?
thanks
Re: Bug in RichEditBox : backgroundcolor
Posted: Wed May 28, 2014 5:06 pm
by serge_girard
Sure, but you can see it in: HMG.3.3.0\SAMPLES\Controls\RichEditBox\demo.prg
Greetings, Serge
Re: Bug in RichEditBox : backgroundcolor
Posted: Wed May 28, 2014 8:17 pm
by EduardoLuis
Hi Serge:
I've test RichEdit, and i think there is no bugg.-
I supose that Backgroundcolor is only for screen display not for print output.-
I check BackColor Font and Font Color and both works fine.-
I attach the test.-
Re: Bug in RichEditBox : backgroundcolor
Posted: Wed May 28, 2014 8:40 pm
by EduardoLuis
I don't understand why file was not attached.-
Re: Bug in RichEditBox : backgroundcolor
Posted: Wed May 28, 2014 9:39 pm
by esgici
EduardoLuis wrote:I don't understand why file was not attached.-
Hola Eduardo
- Change BG color in .rtf file.
- Save ( with different name if necessary )
- Open saved file
You will see BG color unchanged
I guess serge said this.
Saludos
Bug in RichEditBox : backgroundcolor
Posted: Wed May 28, 2014 10:49 pm
by Pablo César
EduardoLuis wrote:I don't understand why file was not attached.-
Probably an error was displayed saying this kind of file was not allow to attach. Please compact if in zip or rar file and make sure to attach file again.
Re: Bug in RichEditBox : backgroundcolor
Posted: Thu May 29, 2014 12:25 am
by esgici
esgici wrote:...
You will see BG color unchanged
...
I'm afraid that I has been confused two thing : Control ( R. Edit box ) Back Color and Font Back Color.
Control BG not saved and font BG always saved successfully.
As far as I see Control BG not supported other standrad RTF editor WordPad.

- RichEditBoxDemo330.PNG (57.59 KiB) Viewed 4105 times
Re: Bug in RichEditBox : backgroundcolor
Posted: Thu May 29, 2014 7:09 am
by serge_girard
Esgici,
You are right: these are two different things.
I was thinking that the backcolor (the yellow one) could be saved within the RTF format. This backcolor is only the backcolor of the Richeditbox.
Only the FontBackColor is RTF and this is saved correctly!
So, everything is OK!
Greetings, Serge
Re: Bug in RichEditBox : backgroundcolor
Posted: Fri May 30, 2014 1:00 pm
by EduardoLuis
Thanks Pablo Cesar, i forget upload files must be zip or rar.-