Re-import the frame as a


If I have a form that contains a frame, and I edit the frame's layout in frame.pas/dfm file, it appears that sometimes (always?) the frame in the form does not get updated with new layout of the frame.

Up until now, I've been deleting the frame from the form and then re-importing it.

But I recall that there was a more efficient way to do this.


To cancel changes made to an inserted frame:

For controls on the frame: use Revert to Inherited in the context menu of those controls.

For the frame itself: use View as Text in the context menu of the form and delete the frame's size from the DFM.

To update an inserted frame to its declaration:

I suspect a quick toggle with View as Text and View as Form to force creation of a new instance of the form will do the trick.