Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8144685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:27:04+00:00 2026-06-06T13:27:04+00:00

In a legacy application (created in Delphi 6 under WinXP in 32-bit, recently ported

  • 0

In a legacy application (created in Delphi 6 under WinXP in 32-bit, recently ported to Delphi XE2 under Win7 in 64-bit) at design time, the standard controls look “modern”, with color gradients etc. In run-time though, they look just like an old Win95 version.

That would not bother me much if, in particular, the default colors in TPageControl and TTabControl wouldn’t make it really difficult to tell which tab is currently selected.

So my questions are:

  1. What could make the theme not active at run time?
  2. Is it possible to easily (e.g. through IDE configuration) make the design time look like the run time?

Note:

  • In the project options, I enabled runtime themes for each existing target. It didn’t help.
  • I also tried to enable GlassFrame in the forms containing those controls. Unfortunately, the runtime look and feel stayed unthemed.
  • This application is built on a lot of in-house and external code that
    I don’t master (just a dwarf standing on shoulders of giants),
    but whose source are available to me. Suspecting that some
    instruction would disable themes at application startup, I looked for
    some keywords like “Theme”, “Skin”, “TStyleManager”, “SetWindowTheme”
    hoping to solve this by myself. I could not find anything significant (to me, at least).
  • I tried to skin a small application as a test, using infos from
    Question
    Delphi XE2 VCL styles tutorial – how to change the style at runtime,
    and it worked perfectly.
  • Skinning my application is not my goal. I just would like to be able to visually tune some GUI elements at design time, and it is easier if design and run time look alike.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:27:05+00:00Added an answer on June 6, 2026 at 1:27 pm

    It turns out that removing the line “{$R *.res}” in the dpr file had made the themes unavailable.

    Under D6, I disabled version information in the project and replaced “{$R *.res}” with “{$R ‘myApp.res’ ‘myApp.rc’}”, to use my own rc file to have the version information in a separate, easy to edit file, and not to be forced to go through the project options.

    Under XE2, that did not work anymore because the resource would often be overwritten (or not taken into account, I’m not quite sure) by Delphi during the build. I had to rename the rc file so that it does not match the application name, thus replacing “{$R ‘myApp.res’ ‘myApp.rc’}” with “{$R ‘myApp_rc.res’ ‘myApp_rc.rc’}”.

    Putting the “{$R *.res}” again (along with “{$R ‘myApp.res’ ‘myApp.rc’}”) seems to make things right with themes and not break the version information.

    Thank you Brian for having me look in the good direction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a legacy delphi dll. I created a class library that imports the
UPDATED 2010-11-25 A legacy stand-alone application (A1) is being re-created as a web application
I've created a copy of our legacy, (decrepit) homegrown Timesheet ASP application on to
I've got a legacy application that creates an email message with an attachment. The
I work on an legacy application, where Spring AOP (namely ProxyFactoryBean ) is used.
I have a legacy application that I inherited that passes a lot of XML
We have an legacy application that accesses the registry. Because it is a 32bit
I have a legacy application where the method calls go several layers deep: public
I'm maintaining a legacy application written in C++. It crashes every now and then
Migrating a legacy application from WebSphere v.6 to WebSphere v.8. The application's web.xml only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.