uses
sSkinManager, sEdit, GraphUtil;
type
TsEdit = Class(sEdit.TsEdit)
procedure WndProc(var Message: TMessage); override;
end;
procedure TsEdit.WndProc(var Message: TMessage);
begin
case Message.Msg of
WM_PAINT:
begin
if ReadOnly then
begin
SkinData.CustomColor := True;
Color := ColorAdjustLuma(ColorToRGB(Form1.sSkinManager1.Palette[pcEditBG]), -25, True);
end else SkinData.CustomColor := False;
end;
end;
inherited WndProc(Message);
end;