视觉组件在设计模式下变得不可见,并且无法在 Fire Monkey 中恢复它们
我使用 TScaledLayout 作为背景,在加载项目几次后,所有可视组件都变得不可见,它们在那里并且可以正常编译和运行,但我无法让它们再次变得可见。现在已经发生了 4 次,每次都必须恢复到备份。
I am using a TScaledLayout as a background and after I load the project a few times ALL visual components become invisible, they are there and will compile and run fine but I cannot get them to become visible again. Has happened 4 times now and have had to revert to a backup each time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在使用 Firemonkey 时,我在 IDE 中遇到了相当多的错误 - 它远不如 VCL 可靠(到目前为止)。特别是
'.lfm'
和'.pas'
可能会变得不同步,因此lfm
中存在未定义的组件在pas
文件中。这似乎不会影响运行时,但在编码时肯定会感到困惑...尝试检查一下
lfm
中的所有组件是否也在form
上定义代码>.围绕表单继承似乎还存在一些问题,您只需手动执行很多操作,因为后代通常不会接受对祖先的更改。另请注意,大多数 Firemonkey 组件现在还有一个名为
'DesignVisible'
的属性。检查该设置是否正确。I have encountered quite a few bugs in the IDE when using Firemonkey - it is nowhere near as reliable as VCL (yet). In particular the
'.lfm'
and'.pas'
can become unsynchronised, so that there are components in thelfm
, which are defined not in thepas
file.This doesn't seem to affect runtime but sure can be confusing when you are coding... Try checking to see that all of the components in the
lfm
are also defined on theform
. There also seems to a few issues surrounding form inheritance, where you just have to do a lot of things manually as changes to ancestors are often not picked up by descendants.Also note that most Firemonkey components also now have a property called
'DesignVisible'
. Check to see that this is set correctly.