Bug in RichEditBox : backgroundcolor

Moderator: Rathinagiri

User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Bug in RichEditBox : backgroundcolor

Post by serge_girard »

Hello,


It looks like saving a text from richeditbox doesn't save the choosen backgroundcolor.

Greetings, Serge
There's nothing you can do that can't be done...
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Bug in RichEditBox : backgroundcolor

Post by Javier Tovar »

You can upload a demo?

thanks
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Bug in RichEditBox : backgroundcolor

Post by serge_girard »

Sure, but you can see it in: HMG.3.3.0\SAMPLES\Controls\RichEditBox\demo.prg

Greetings, Serge
There's nothing you can do that can't be done...
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Bug in RichEditBox : backgroundcolor

Post 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.-
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Bug in RichEditBox : backgroundcolor

Post by EduardoLuis »

I don't understand why file was not attached.-
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Bug in RichEditBox : backgroundcolor

Post 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
Viva INTERNATIONAL HMG :D
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Bug in RichEditBox : backgroundcolor

Post 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Bug in RichEditBox : backgroundcolor

Post 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
RichEditBoxDemo330.PNG (57.59 KiB) Viewed 4101 times
Viva INTERNATIONAL HMG :D
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Bug in RichEditBox : backgroundcolor

Post 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
There's nothing you can do that can't be done...
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Bug in RichEditBox : backgroundcolor

Post by EduardoLuis »

Thanks Pablo Cesar, i forget upload files must be zip or rar.-
Post Reply