The SRVDxSkinAdapteк (DrawEditorFrame = True) does not change Srv.BackgroundProperty.ColorBegin ...ColorEnd, but Srv is painted according to DevEx Skin, but the ZoomPanel does not change the background color (because Srv.BackgroundProperty.ColorBegin ...ColorEnd not changed)
To change the background of the ZoomPanel I do the following
...
if Assigned(RootLookAndFeel.SkinPainter) then
begin
AColor := RootLookAndFeel.SkinPainter.DefaultControlColor;
BackgroundProperty.ColorBegin := AColor;
BackgroundProperty.ColorMiddle := AColor;
BackgroundProperty.ColorEnd := AColor;
// but this changes the ZoomPanel background three times (TSRVZoomPanel.Paint)
end;
...
What is the best way to change ZoomPanel background color - ?
ZoomPanel does not repaint when using DevEx Skin
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: ZoomPanel does not repaint when using DevEx Skin
Sorry for the delay.
Yes, a zooming panel is drawn using BackgroundProperty's gradient colors (even when a gradient fill is turned off, it is drawn using ColorBegin).
So your changes are correct.
However, for some skins results are not the best, because a zooming panel uses system (or VCL theme) colors for drawing text, lines and highlighting buttons.
In the next update, SRVDxSkinAdapter will change these colors as well.
Yes, a zooming panel is drawn using BackgroundProperty's gradient colors (even when a gradient fill is turned off, it is drawn using ColorBegin).
So your changes are correct.
However, for some skins results are not the best, because a zooming panel uses system (or VCL theme) colors for drawing text, lines and highlighting buttons.
In the next update, SRVDxSkinAdapter will change these colors as well.
Re: ZoomPanel does not repaint when using DevEx Skin
Thank you. The code is actually somewhat different and smoothes some flaws
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: ZoomPanel does not repaint when using DevEx Skin
In ScaleRichView 7.9 (available for registered users) SrvDxSkin changes zooming panels.