Page 1 of 1

How to update bullets in tdbRichViewEdit?

Posted: Tue Mar 21, 2017 11:20 am
by jota
Hello

I want to resize the bullets, when I change the font size of the associated text, keeping the existing formatting (indentation, characters used for bullets, etc.)

A simple way to do it ?, a small example code?

thank you for your attention

Re: How to update bullets in tdbRichViewEdit?

Posted: Wed Mar 22, 2017 7:50 am
by Sergey Tkachenko
If bullets of the same list appear outside the selected fragments, do you want to change their size as well?

Re: How to update bullets in tdbRichViewEdit?

Posted: Wed Mar 22, 2017 12:41 pm
by jota
Hello, only the bullets associated with the selected text scope

Thanks

Re: How to update bullets in tdbRichViewEdit?

Posted: Wed Mar 22, 2017 9:35 pm
by Sergey Tkachenko
TRichView has a limitation: all list markers in the list (more exactly, in the list level) must have the same font.
So, if you want to apply font only to the selected markers, it can be implemented only by creating a new list with the proper font, and applying it instead of the existing list.
It's ok for bullets, but not ok for numbering: if you create a new list for selected numbers, numbering will not be continuous.

This is the main reason why font applying to marker is not implemented yet.

So, how do you want it work:
For bullets, applying to the selected items, for numbers, applying to all of this list level? or not applying?
Or apply to all of this level both for bullets and numbering, for consistency?

Sergey

Re: How to update bullets in tdbRichViewEdit?

Posted: Thu Mar 23, 2017 8:41 am
by jota
Hello.

After knowing the situation, I will not modify the list of bullets,

Anyway, if it is not much effort, it would be interesting to know an example of the last option that you indicate, about application to bullets and numbering of the list level

Thanks again for the help.

Re: How to update bullets in tdbRichViewEdit?

Posted: Tue Mar 28, 2017 11:20 am
by Sergey Tkachenko
I'll create this example after releasing the next update with RAD Studio 10.2 support, sorry for the delay.