Assume the following situation:
FrmBasehas aTPanelnamedPnlClient, alignalClientFrmDescendantinherits fromFrmBase- In
FrmDescendantI change aPnlClientproperty - In
FrmDescendantI place another control (say anotherTPanelnamedPnlDescendant) onPnlClientand align italClient.PnlDescendantnow completely coversPnlClient - I place lots of other components on
PnlDescendant, not necessarily aligned, so I'm afraid to changePnlDescendant(e.g. setting align toalNoneand resizing) and lose positions
How can I execute 'revert to inherited' for PnlClient?
There's nothing in the main menu, or in the popup menu for the controls in the Structure View...
Currently using Delphi 10.4.1 Sydney
This is easy for a keyboard user like myself:
Click on
PnlDescendantin the form editor to make it the focused and selected control.Press Esc to select its parent,
PnlClient.Press the Menu key on your keyboard to display the context menu of
PnlClient. If you have a cheap keyboard without a Menu key, press Shift+F10 instead.Click on "Revert to Inherited". (Or, much faster: press the menu item's underlined character, probably I.)
(But notice that this will remove
PnlDescendantcompletely. Probably you didn't want that, but that's how it works.)