开发者

Visual themes and Delphi 7 on Windows 7

开发者 https://www.devze.com 2022-12-15 19:02 出处:网络
how I can enable using visual themes for Delphi 7 IDE on Windows 7? For Windows XP I made file delphi32.exe.manifest, but for Windows开发者_Python百科 7 it does not work.

how I can enable using visual themes for Delphi 7 IDE on Windows 7? For Windows XP I made file delphi32.exe.manifest, but for Windows开发者_Python百科 7 it does not work.

I mean Delphi 7 enviroment and development. My programs are OK.

Thank you, Pavel


You should never include any manifest for the Delphi IDE executable file. This will trigger errors during the execution process of you apps (mainly if you use TImageList component). So use the old "Win NT" layout of the IDE. It's enough. In order to work with Windows 7, two steps to be performed: 1. Make the "Borland" or "Borland\Delphi" folder accessible to all users as WRITE from its properties (and sub folders, of course) 2. Install the old Windows Help and some Delphi 7 IDE enhancements, as I stated in http://blog.synopse.info/post/2010/01/01/Some


Does it help if you drop a XPManifest control on the mainform?


If you're using separate .menifest file - then identify section of manifest should match your exe file. If you got it wrong - the manifest will be ignored. Identity section is ignored, if manifest is compiled into executable. So, if you can't get it working - add it as resource, not as file.

Why it works in XP? Don't know. May be W7 have more strict checks than WXP or something similar.

But I don't think that applying a manifest to D7 is a good idea. Why don't you use D2007 or D2010? Let D7 rest in peace, really.


This is an informed solution, though I haven't tested it (I don't use Delphi 7 anymore)...

You need to create a Package, and that package required DesignIDE. In your package, add a unit (doesn't matter what you call it)... now put the following code in your unit:

unit D7WithTheme;

interface

uses
  XPMan;

var
  D7Theme: TXPManifest;

implementation

initialization
  D7Theme := TXPManifest.Create(nil);
finalization
  D7Theme.Free;

Save and install your package... you should now have OS theming when you load the IDE! Hope it helps!


You should compile the manifest as resource inside of the executable.

0

精彩评论

暂无评论...
验证码 换一张
取 消