Assume the following situation:
FrmBase
has aTPanel
namedPnlClient
, alignalClient
FrmDescendant
inherits fromFrmBase
- In
FrmDescendant
I change aPnlClient
property - In
FrmDescendant
I place another control (say anotherTPanel
namedPnlDescendant
) onPnlClient
and align italClient
.PnlDescendant
now completely coversPnlClient
- I place lots of other components on
PnlDescendant
, not necessarily aligned, so I'm afraid to changePnlDescendant
(e.g. setting align toalNone
and 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
PnlDescendant
in 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
PnlDescendant
completely. Probably you didn't want that, but that's how it works.)