Changing paragraph variables for selected area
Changing paragraph variables for selected area
How do I change the formatting variables for paragraphs by assigning values through my program rather than through rvActionsResource.rvActionParagraph1? I want to be able to set the variables without forcing the user to enter the changes via the dialog.
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
This demo has commands for increasing and decreasing the left indent: PARA_INDENTINC and PARA_INDENTDEC.
They are implemented in TForm1.rveParaStyleConversion in the following way:
You can implement similar commands for assigning specific values to ParaInfo.LeftIndent and ParaInfo.FirstIndent.
They are implemented in TForm1.rveParaStyleConversion in the following way:
Code: Select all
PARA_INDENTINC:
begin
ParaInfo.LeftIndent := ParaInfo.LeftIndent+20;
if ParaInfo.LeftIndent>200 then
ParaInfo.LeftIndent := 200;
end;
PARA_INDENTDEC:
begin
ParaInfo.LeftIndent := ParaInfo.LeftIndent-20;
if ParaInfo.LeftIndent<0 then
ParaInfo.LeftIndent := 0;
end;