德尔福7的形式,锚不工作在Vista中 [英] Delphi 7 forms, anchors not working in Vista

查看:198
本文介绍了德尔福7的形式,锚不工作在Vista中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该软件是建立在Delphi 7中。

The software is built on Delphi 7.

在我的XP机器的形式调整大小如我所料。然而,在两个Vista计算机,我有设定为[akLeft,akTop,akRight,akBottom]锚成分,但是当我调整的形式,机件不舒展的形式,留下空格右侧和底部边缘。在XP的机器,各部件正确舒展的形式。

On my XP machine, the form resizes as I expect. However, on two Vista machines, I have components with anchors set to [akLeft, akTop, akRight, akBottom], but when I resize the form, the components don't stretch with the form, leaving blank spaces on the right and bottom edge. On the XP machine, the components correctly stretch with the form.

所以,这似乎是Vista的机器是忽略锚固性能。任何想法是什么导致这个问题以及如何解决它?

So, it seems like the Vista machine is ignoring the anchor property. Any ideas what's causing this and how to fix it?

重要更新(弗朗索瓦):
我们有同样的问题与我们的 D2007 应用程序和上的所有64位窗口
安地列斯的回答确实修复。 所以它不是D7也不Vista的相关

Important update (François):
We had the same problem with our D2007 application and on all x64 windows.
Andreas' answer was indeed the fix. So it is not D7 nor Vista related.

推荐答案

也许这是关系到发生,如果你的控件有许多家长的Windows内核堆栈溢出的问题。如果你在64位系统上运行的内核堆栈溢出发生得更快。 (更多关于这个在这里:<一href="http://news.jrsoftware.org/news/toolbar2000/msg07779.html">http://news.jrsoftware.org/news/toolbar2000/msg07779.html)

Maybe it is related to the "Windows Kernel stack overflow" problem that occurs if your control has many parents. And if you run it on a 64 bit system the kernel stack overflow happens much faster. (more about this here: http://news.jrsoftware.org/news/toolbar2000/msg07779.html)

在英巴卡迪诺的codeCentral是这个错误一种变通方法(这也被复制几乎1:1到2009年德尔福VCL)的 http://cc.embarcadero.com/Item/25646

On Embarcadero's CodeCentral is a workaround for this bug (which is also copied almost 1:1 into the Delphi 2009 VCL): http://cc.embarcadero.com/Item/25646

这篇关于德尔福7的形式,锚不工作在Vista中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆