Bold style problem

General TRichView support forum. Please post your questions here
Post Reply
hcourcelles
Posts: 16
Joined: Wed Aug 26, 2009 7:58 pm

Bold style problem

Post by hcourcelles »

Hi,

I've been able to set bold style on some character in DBRichViewEdit.

Visually it is working and as soon as I click my bold button they appear in bold.

After that, I saved the record to the database.

If I close the window that I was working in and reopen it, the character that were in bold are now in red.

If I scroll through records and come back to the initial one, the character are not red anymore but in bold.

What is missing when I open the windows so the style are apply correctly immediately.

Best regards,

Helene
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Probably, document is saved without collection of styles.
Right click TDBRichViewEdit in Delphi, choose "Settings" in the context menu, select "Allow adding styles dynamically".
hcourcelles
Posts: 16
Joined: Wed Aug 26, 2009 7:58 pm

Post by hcourcelles »

I've set the option as suggested.

It didn't work. The information was still in red so I inserted a new record to see if it was working with a brand new record and the problem was still there also.

I decided to erase all records from the database and inserted a new one and only then did it work when I've inserted bold in that new record, close the window, reopen it and it was OK.

Why did it only work when I erase all records from the database?

Thanks for helping understand this new component.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Because existing documents were saved without collections of styles (without information about fonts)
Post Reply