无法在Delphi XE7中删除控件 [英] Cant delete controls in Delphi xe7

查看:93
本文介绍了无法在Delphi XE7中删除控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅安装了Delphi xe7。打开使用XE7开发的项目。附带说明,但我首先要担心的是,无论是将视图从Master更改为iPhone4,还是只是在Design View中拖动控件,一切都会导致IDE挂起。我以前有一个工具单元,该单元具有接受TComboEdit参数的功能。似乎他们再次移动了东西,因为该功能现在已损坏。为了快速找出主持组合编辑的单位,我打开了一个表单并放下了Combo编辑并保存。很酷,现在我知道有一个FMX.ComboEdit单元。我尝试删除组合编辑,这就是我得到的:选择包含一个组件ComboEdit1,该组件是在祖先中引入的,不能删除。

Just installed Delphi xe7. Opened a project developed with XE7. Side note, but my first concern is that everything causes the IDE to hang, whether it be changing 'views' from Master to iPhone4, or simply dragging controls around in Design View. I previously had a tools unit that had a function that accepted a TComboEdit param. It seems they moved things around again because the function is now broken. To quickly find out which unit hosts combo edits, I opened a form and dropped a Combo edit down and saved. Cool, now I know there is a FMX.ComboEdit unit. I try to delete the combo edit and this is what I get : Selection contains a component, ComboEdit1, introduced in an ancestor and can not be deleted.

对于我放在窗体上的任何新控件(例如,甚至TEdits)也是如此。无法删除任何内容。快速的Google搜索可以引用TGrid和列...在我的表单上,只有Layouts和TabControl,新放置的控件位于TabItem内。好的,也许TabItems存在类似的错误,所以我尝试移动控件,使表单成为父控件。但是,IDE会挂起大约30秒,并且不会执行任何操作。

This is also true for any new control I drop on the form, e.g., even TEdits. Can't delete anything. Quick google search makes references to TGrids and columns... On my form, there are only Layouts and a TabControl, where the newly places controls are within a TabItem. Okay, maybe there is a similar bug with the TabItems, so I attempted moving the controls around, making the form their parent. But, the IDE hangs for about 30 seconds and won't do anything.

如何在 Delphi xe7 中删除这些控件?

How can I delete these controls in Delphi xe7?

推荐答案

要删除视图中的组件,您需要切换到主视图,然后删除那里的组件。
另请注意,添加到特定视图的组件只能在主视图中删除​​。这样做的原因是,所有放置在任何视图上的组件都传播到主视图,然后借助 Visual Form Inheritance 会显示在所有视图中。

In order to delete components in a View you need to switch to the Master View and delete the components there. Note also, that components that you add to a specific view can only be deleted in the Master View. The reason for this is that all components that are dropped on any view are propagated to the Master View and then by virtue of a sort of Visual Form Inheritance will show up on all Views.

这篇关于无法在Delphi XE7中删除控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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