0

In order to override TPanel's Paint procedure to make the background color clwhite in delphi 7, I am following @RRUZ Answer, but I can't find the TCustomStyleServices class.

There is an alternative to do what I want?

I'm using XPMan resource (IDK if changes anything).

Community
  • 1
  • 1
EProgrammerNotFound
  • 2,403
  • 4
  • 28
  • 59
  • 2
    Setting `Parentbackground` to false and `Color` to clWhite should fit your requirements. – bummi Jul 17 '13 at 14:10
  • @bummi, that's the answer! – TLama Jul 17 '13 at 14:14
  • @TLama undelete yours, it was covering my comment and showing addition informations. – bummi Jul 17 '13 at 14:15
  • @bummi, not now :-) There was a interposer class with overriden `Paint` method which is not needed at all. Hence my edit and deletion. It's enough to use the `TPanel` class as it is with the settings you've mentioned. – TLama Jul 17 '13 at 14:18

2 Answers2

6

Since Delphi7 does not support VCL-Styles, setting Parentbackground to false and Color to clWhite should fit your requirements.

bummi
  • 27,123
  • 14
  • 62
  • 101
1

You can see that the question, your link to, is tagged with VCL Styles tag.
How I can change the color of a TPanel with the VCL Styles enabled?

You can click on tthe tag below the question text and read it's description: https://stackoverflow.com/tags/vcl-styles/info

The information says that VCL styles were introduced with Delphi XE2.

Since Delphi 7 was released somewhat before XE2 it can not contain that feature.

Community
  • 1
  • 1
Arioch 'The
  • 15,799
  • 35
  • 62