Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant delete controls in Delphi xe7

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.

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.

How can I delete these controls in Delphi xe7?

like image 256
ThisGuy Avatar asked Sep 02 '14 16:09

ThisGuy


1 Answers

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.

like image 189
iamjoosy Avatar answered Oct 05 '22 09:10

iamjoosy