table border

General TRichView support forum. Please post your questions here
Post Reply
ravn
Posts: 8
Joined: Wed Jan 21, 2015 6:08 pm

table border

Post by ravn »

How do I change the table border.
The only thing that changes from this is BorderLightColor
with ActionInsertTable1 do
begin
BorderStyle:= rvtbColor ;
BorderLightColor:= clBlue;
BorderColor:= clRed;
BorderWidth:= 4;
end;
Sergey Tkachenko
Site Admin
Posts: 17309
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: table border

Post by Sergey Tkachenko »

BorderLightColor is not used when BorderStyle = rvtbColor. It is used only if BorderStyle = rvtbRaisedColor, or rvtbLoweredColor.
So this code defines red table border.
These settings are applied to new tables that will be inserted by ActionInsertTable1.

Or do you want to modify border of an existing table?
ravn
Posts: 8
Joined: Wed Jan 21, 2015 6:08 pm

Re: table border

Post by ravn »

This should be usable with rvtbColor, but it doesn't change anything. I can change this afterwards but not when creating the table
BorderColor:= clRed;
BorderWidth:= 4;
Sergey Tkachenko
Site Admin
Posts: 17309
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: table border

Post by Sergey Tkachenko »

I added your code in the ActionTest demo, adding "rv" to the action name:

Code: Select all

with rvActionInsertTable1 do
begin
 BorderStyle:= rvtbColor ;
 BorderLightColor:= clBlue;
 BorderColor:= clRed;
 BorderWidth:= 4;
end;
After that, all new tables were inserted with red 4px border, as expected.
ravn
Posts: 8
Joined: Wed Jan 21, 2015 6:08 pm

Re: table border

Post by ravn »

I have found the reason. This was my own mistake, I regret.
Post Reply