Pregunta

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

¿Fue útil?

Solución

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

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top