Hello,
When in Draft mode or Web Mode in SRichViewEdit, is there are a way to change the background color fully to a darker color (like in Darkroom and other editors) and switch to white page color when in Layout mode?
I would really appreciate any help you can offer in this regard.
Thank you and kind regards
Extorian
Background color
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
TSRichViewEdit has a special property for changing page background color: SRichViewEdit.BackgroundProperty.GlobalPageBackgroundColor.
It overrides SRichViewEdit.RichViewEdit.Color and, unlike this property, is not saved to RVF.
I made a test in the ActionTest demo (not a tabbed, but with a single editor): in dmActionSRV.pas, I processed ActionList1.OnExecute:
It works as expected (if you test it with the default readme.rvf, do not forget to remove a background image).
It overrides SRichViewEdit.RichViewEdit.Color and, unlike this property, is not saved to RVF.
I made a test in the ActionTest demo (not a tabbed, but with a single editor): in dmActionSRV.pas, I processed ActionList1.OnExecute:
Code: Select all
procedure TsrvActionsResource.ActionList1Execute(Action: TBasicAction;
var Handled: Boolean);
begin
if Action=srvActionLayoutWeb1 then
Form3.SRichViewEdit1.BackgroundProperty.GlobalPageBackgroundColor := clYellow
else if (Action=srvActionLayoutDraft1) or (Action=srvActionLayoutPrint1) then
Form3.SRichViewEdit1.BackgroundProperty.GlobalPageBackgroundColor := clWhite;
end;
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: