Search code examples
delphifiremonkey

Deleting style elements from a style in Delphi Firemonkey


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


Solution

  • 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.