Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TppCustomPreviewer Color

edited December 2001 in General
Hello,

How do I change the background color of the TppCustomPreviewer component?

Thank you in advance...

Tracy McClarnon

Comments

  • edited December 2001
    Unfortunately, it looks like it is hard coded in the
    TppScreenDevice.RenderPage method. It is public and not virtual. You'll have
    to create a copy of the TppScreenPreview class and name it your own and
    register it so that RB uses it instead of the TppScreenDevice class.

    ...
    {draw background}
    FCanvas.Brush.Style := bsSolid;
    FCanvas.Brush.Color := clBtnShadow;
    FCanvas.Brush.COlor := clAqua;
    FCanvas.FillRect(Rect(0, 0, FPageImage.Width, FPageImage.Height));
    ...

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.