Page 1 of 1

TDBRichViewEdit Options

Posted: Thu Jul 10, 2008 6:06 pm
by Zala
Hello,

I'm in a TDBRichViewEdit and I'm editing the component with a custom editor that use the RichViewAction.

My problem is that when I post my content in my database, some of my style are missing. Like the underline, the bold, etc...

So I need to know witch options I need to set to have all my style saved and loaded properly.

Regards,

Zalathorn

Correction

Posted: Thu Jul 10, 2008 6:16 pm
by Zala
In fact, I can save the style like bold and underline, it's more the bakgroung, the bidiMode, the strike, etc...

Thank you,

Zala

Posted: Sat Jul 12, 2008 6:17 pm
by Sergey Tkachenko
Right click the editor in Delphi, choose Settings in the popup menu, set "Allow adding styles dynamically" mode. Do it both for editors that save data and for editors that display data.

Posted: Mon Jul 14, 2008 2:56 pm
by Zala
I didn't found the Setting button in the "Popup Menu".

Am I suppose to right on the TRichViewEdit in Design Mode and then choose Settings?

Posted: Tue Jul 15, 2008 8:07 pm
by Sergey Tkachenko
Yes, right click the TDBRichviewEdit at design time, a context menu will appear, and its first item is "Settings"

Posted: Wed Jul 16, 2008 6:51 pm
by Zala
I found it...right where you said it was the first time. I suppose I just didn't look really well.

But now, I use a lot of heritage. So is there a way to set this option programatically?

Posted: Wed Jul 16, 2008 6:54 pm
by Zala
I found that the function just set Options in design time, so I just need to set them programatically.

Thank you.