Industry IT Water-Cooler for Power-Users:
Windows 7, Delphi 7 and Political Correctness
 
Posted 1/19/2010 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.

KB102097

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.

Solution

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:

http://www.microsoft.com/windows/virtual-pc/download.aspx


Blog Entries!

1 Comments.
 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?

Regards,

Alexander

ayarovy@gmail.com

---
Alexander
Posted 1/11/2011

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 1/11/2011

Comment 3 of 4

Hi Alexander,

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

https://forums.codegear.com/thread.jspa?threadID=18535

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

Posted 1/14/2011

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!
---
nick
Posted 1/17/2011
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
www.prestwood.com For service: 916-726-5675
or support@prestwood.com
Copyright (C) Prestwood IT Solutions.
All Rights Reserved.
Printed 7/6/2020