Your full service technology partner! 
-Collapse +Expand
Search Industry Group:

-Collapse +Expand Industry Store

Prestwood eMagazine

June Edition
Subscribe now! It's Free!
Enter your email:

   ► KBIT Water-Coo...   Print This     
Industry IT Water-Cooler for Power-Users:
Windows 7, Delphi 7 and Political Correctness
Posted 12 years ago on 1/19/2010 and updated 1/7/2016
Take Away:

With my installation of Win7 complete, I moved on to installing my favorite software. Delphi 7 was high on my list but, when I went to install it, Win7 went all "politically correct" on me.

This post is about how I dealt with the problem.

 A blog topic from Wes's Blog


Why Delphi 7?

I suppose you may wonder why, when the current version of Delphi is 2010, I'd want to install Delphi 7. The answer is twofold - and simple.

First of all, I like Delphi 7. It was the last solid Delphi release before the version numbers went to years (2005, 2006, etc.) - until Delphi 2009. Delphi 7 is still a great development tool.  It's not broken or crippled, and I enjoy working in it.

Second, we have to maintain and upgrade various client applications that were written in Delphi 7 and our clients sometimes don't care to shell out for a "port" to a later version of Delphi.

Political Correctness

As soon as the Delphi 7 setup program began to run, Win7 announced that Delphi 7 had "issues" with Windows 7. I know, languages change over time, but that doesn't mean I have to like it.  Check a dictionary and you'll see that "issue" is no synonym for "problem."  Problems can have solutions; issues can't.

"Issue" is now a euphimism for "problem," a more PC way of saying what you mean without coming out and saying it. That annoys me.  You're expected to say your neighbors are having marital "issues," not that one or both of them has a problem with fidelity.


So Delphi 7 has problems with Windows 7.  Fine. Let's see if there's a solution.

There is, and it's simple.  Using Windows Explorer, locate Delphi32.EXE and right-click on it.  Windows 7 will tell you (again) that Delphi 7 has issues, but it'll also offer to try to fix them.  Let it try.  When it's finished trying, it offers you the option of running Delphi32.exe in "XP compatibility mode."  Say yes and you'll find that Delphi 7 works just fine.

XP Compatibility mode is not available in all versions of Win7.  If your version of Win7 does not include XP compatibility mode, check here to see if you can get it:

More Info

Blog:  Windows 7 Trials and Triumphs
Blog:  Windows 7: Data Where You Want It

Blog Entries!

 Contribute to this open topic blog!
First Comment
Comment 1 of 4

Hi Wes,

My approach is exactly the same you explained in your article "Windows 7, Delphi 7 and Political Correctness ".

Unfortunately, I have found at least one Delphi 7 problem under Windows 7.  The OnDrawTab event of the TPageControl component is never called. It looks like the CN_DRAWITEM message is getting lost somewhere.

Do you know anything about this?



Posted 11 years ago

Comment 2 of 4

Hi Alexander,

I'm afraid I can't help. I've never had a reason to handle the OnDrawTab event of the TPageControl.

Have you tried a substitute for TPageControl? I'm pretty sure such components are included in Raize Controls and project JEDI; they might be a little better behaved.

Posted 11 years ago

Comment 3 of 4

Hi Alexander,

There is a fix in the VCLFixes unit for this known bug documented here...

Try it out and let me know if it fixes the problem for you.

Posted 11 years ago

Latest Comment
Comment 4 of 4
Thanks for the link to VCLFixes - it does what it says: fixes the problem of tabs not getting drawn under win7 (on certain computers, but not mine), which was starting to become an embarrassment!
Posted 11 years ago
Comment on this blog topic...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1272A1
Enter key:
Blog Contributed By Wes Peterson:

Wes Peterson is a Senior Programmer Analyst with Prestwood IT Solutions where he develops custom Windows software and custom websites using .Net and Delphi. When Wes is not coding for clients, he participates in this online community. Prior to his 10-year love-affair with Delphi, he worked with several other tools and databases. Currently he specializes in VS.Net using C# and VB.Net. To Wes, the .NET revolution is as exciting as the birth of Delphi.

Visit Profile

 KB Article #102097 Counter
Since 1/19/2010
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site:

©1995-2022 Prestwood IT Solutions.   [Security & Privacy]