views:

185

answers:

4

I've got a project that I started in Turbo Delphi, which I recently updated to D2009, and I've noticed a bit of a quirk in the form designer. All the old forms have a Win98 style applied to them. The buttons are gray with sharp square edges, for example. But any new form I've created since the upgrade displays its controls in WinXP style. If I copy a control from an old form and paste it to a new one, the style changes. At runtime, all controls from all forms are shown in XP style.

Any idea what's causing my old forms to show in an old style? I've looked through the properties list, but nothing jumps out at me. But there's obviously something, and it's persistent because saving and reloading doesn't change it. Anyone know where this property is and how I can fix it?

+1  A: 

You should enable run time themes.

Did you check?

Project | Options | Application | [  ]  Enable Run Time Themes
Cesar Romero
It's enabled, and my question is about design-time appearance anyway.
Mason Wheeler
+1  A: 

looks at the uses clause in both a old form and a new one, there may be something diffrent. i know in delphi 7 you had to add xpman (or somerthing like that) to get the windows skin.

Re0sless
Nope. Nothing there either...
Mason Wheeler
A: 

Have you checked the dfm files? Sometimes there is something there that is not shown in the propertylist.

Gamecat
Nothing there either. Whatever this is, it's hiding in some out-of-the-way corner of my project...
Mason Wheeler
A: 

Maybe you have a stray Ctl3D (sp?) setting in your dfm?

Ulrich Gerhardt