Question

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).

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top