Numbering style

General TRichView support forum. Please post your questions here
Post Reply
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

Numbering style

Post by cychia »

when start a numbering, how can I specify it font to follow the font at caret position?
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

How do you start numbering? Do you use RichViewActions?
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

Post 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
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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]);
Post Reply