1
votes

For the life of me, i can't seem to figure out how to delete primitive or control elements from a style with in the style designer of Delphi. What am I missing? I have tried right clicking everything i could find and no option surfaces. I tried looking for a panel that isn't enabled. Can't seem to find one. As of now, I have to edit the actual text and reload it, in order to delete a style element.

Delphi XE6

enter image description here

Delphi 10.1 Berlin

enter image description here

EDIT UPDATE: How do I get this window to appear in either IDE?

enter image description here

EDIT UPDATE: Looks like there is a very small button on top left of structure pane that does the trick. I will leave question open for someone to answer with any other way. If no one can, Ill post the answer and accept it.

enter image description here

1
Turns out, there is a button/ Glypth (albiet very small), at the top left side of the Structure Pane. When a style element is selected, it becomes enabled and you can click it to delete that element.John
Thanks John for turning attention to the delete button. You are right about the Edit menu in XE4 to XE7, but in Berlin it exists. I corrected the answer for future readers convenience.Tom Brunberg

1 Answers

1
votes

To delete a style element (tested on Delphi 10.1 Berlin)

  • Right-Click the element in the Structure view to get a popup menu.
  • Select Edit - Delete

enter image description here

Or use the button (doc with red X) immediately above the structure tree.

Thanks to John, I can confirm that in XE4 .. XE7 the popup menu doesn't have the Edit menu, so the only means left is the delete button, mentioned above.

The third image (in your edit) is not familiar. Where did you get the image? Perhaps a third party style editor. Possibly not intended to be incorporated in the IDE.