Page 1 of 1

Numbering style

Posted: Tue Sep 18, 2007 11:28 am
by cychia
when start a numbering, how can I specify it font to follow the font at caret position?

Posted: Thu Sep 20, 2007 6:15 pm
by Sergey Tkachenko
How do you start numbering? Do you use RichViewActions?

Posted: Mon Sep 24, 2007 2:27 am
by cychia
Currently I am using RVaction for inserting numbering.

But may I know both, manually call rv for numbering, and rvaction for numbering.

Thanks

Posted: Thu Sep 27, 2007 3:28 pm
by Sergey Tkachenko
Current version of RichViewActions does not support this feature. The only way to define numbering size in RichViewActions is using the bullets&numbering dialog.
As for creating numbering yourself. You can take the demo in
Demos\Delphi\Assorted\ListStyles\Bullets\
as a sample.
Modify the function TForm1.CreateNumbering.
Instead of

Code: Select all

    Font.Name := 'Arial';
    Font.Size := 12;
write:

Code: Select all

    Font.Assign(RVStyle1.TextStyles[RichViewEdit1.CurTextStyleNo]);