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;
table border
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: table border
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?
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?
Re: table border
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;
BorderColor:= clRed;
BorderWidth:= 4;
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: table border
I added your code in the ActionTest demo, adding "rv" to the action name:
After that, all new tables were inserted with red 4px border, as expected.
Code: Select all
with rvActionInsertTable1 do
begin
BorderStyle:= rvtbColor ;
BorderLightColor:= clBlue;
BorderColor:= clRed;
BorderWidth:= 4;
end;
Re: table border
I have found the reason. This was my own mistake, I regret.