Component properties working at designtime but not runtime?

I haven't looked at your code, but "panels" + "colors not working" sounds as if you've forgotten to set ParentBackground to False.

I haven't looked at your code, but "panels" + "colors not working" sounds as if you've forgotten to set ParentBackground to False. I guess that the colors probably work at design-time, because you enabled theming by using XPMan and not by checking the "Enable run-time themes" checkbox in the project options. (The second option is only available to you, if you have D2007 or later.).

No, I have not enabled Theming....and I did try setting ParentBackground = false and it did not change the results – user332527 May 4 '10 at 16:49 I just built a little app in D2006 and get colored TConsole's if the app isn't themed. As soon as I add XPMan to the project, the created consoles are gray. Adding ParentBackGround := False; to TConsoleControl.

Create fixes this. So I dispute your comment. :-) – Ulrich Gerhardt 27 May7 at 18:54 Not sure what TConsoleControl is, but I assume you are referring to TConsolePanel.

I added ParentBackground=False before I posted this question, but I went back and tried it again to be sure I didn't make some mistake. I do not get the colored panels still. I am not using D2006, I am using Delphi 2010.

Constructor TConsolePanel. Create(AOwner: TComponent); begin inherited Create(AOwner); ParentBackground:= False; ... end; – user332527 May 4 '10 at 20:19 How do I tell if the app is themed or not. Is it themed by default when I create an app?

I wouldn't think it is. I don't use themes. – user332527 May 4 '10 at 20:21 Ok, I just tested this in Delphi 7 and it worked.So, if it works in Delphi 7, and as you say, Delphi 2006, then there is an issue with Delphi 2010 - maybe I need to something new?

– user332527 May 4 '10 at 20:26.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions