Hello,
I use DBSRichViewEdit and when I run the rvActionColor1.Execute, it changes the color of my baground doc. It is ok so far.
But when the color is changed it doesn't trigger the state table to dsedit and even if I have my table in dsEdit and save it when the background is changed, it doesn't save it in my table. Why?
thanks
change the background color and save it in my doc
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
This is a problem in TrvActionColor.
Open RichViewActions.pas, change TrvActionColor.ExecuteCommand to:
This change will be included in the next update of RichViewActions.
Open RichViewActions.pas, change TrvActionColor.ExecuteCommand to:
Code: Select all
procedure TrvActionColor.ExecuteCommand(rve: TCustomRichViewEdit;
Command: Integer);
begin
if not (rvfoSaveBack in rve.RVFOptions) or rve.CanChange then begin
rve.Color := Color;
if rvfoSaveBack in rve.RVFOptions then
rve.Change;
RVA_Events.DoOnBackgroundChange(Self, rve);
end;
end;