Delphi TImageList位图更改 [英] Delphi TImageList Bitmap Changes

查看:360
本文介绍了Delphi TImageList位图更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi XE2 Update 3. Update 4与我们的第三方组件不兼容,所以我们还没有更新。

I'm using Delphi XE2 Update 3. Update 4 is not compatible with some of our 3rd party components, so we haven't updated yet.

我使用TImageList在我的应用程序。我注意到,从源视图切换到窗体视图(F12)很多次,突然之前未修改的单元将被修改。如果我保存由F12引起的更改,我可以查看源代码控制,并看到几个字节的TImageList.Bitmap属性已更改。这里有一个例子,见于TortoiseHg Workbench:

I use TImageList's in my applications. I've noticed that many times when it toggle from source view to form view (F12), suddenly the previously unmodified unit will be modified. If I save the change caused by pressing F12, I can look at source control and see a few bytes of the TImageList.Bitmap property have changed. Here's one example as seen in TortoiseHg Workbench:

@@ -830,7 +830,7 @@
     Left = 760
     Top = 480
     Bitmap = {
-      494C01010200E402E40210001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
+      494C01010200E802E80210001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
                   ^^  ^^  <-- two bytes changed

有时候还有其他细微的变化,但它总是局限于TImageList.Bitmap数据中的几个孤立点。当我没有进行任何有意的改变时,不断将这些微不足道的变化推到源代码管理上是一个真正的痛苦。

Sometimes there are other minor changes, but it's always limited to just a few isolated spots in the TImageList.Bitmap data. It's a real pain to be constantly pushing these insignificant changes into source control when I'm not making any intentional changes.

有没有人知道为什么Delphi更改TImageList.Bitmap数据何时切换源和表单视图?有没有办法解决这个限制?

Does anyone know why Delphi change the TImageList.Bitmap data when toggling between source and form views? Is there a way to workaround this limitation?

推荐答案

这是一个非常烦人的IDE错误,有时在Embarcadero Quality Central有报道在 QC 92769 ,但不幸的是它还没有修复。 : - (

It is a really annoying IDE bug already reported sometimes in Embarcadero Quality Central, especially in QC 92769, but unfortunately it is not fixed yet. :-(

这篇关于Delphi TImageList位图更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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