![](/img/trans.png)
[英]How to revert a frame to inherited when it contains a control aligned to client?
[英]How do I 'revert to inherited' if control is not clickable?
假設以下情況:
FrmBase
有一個名為TPanel
的PnlClient
,對齊alClient
FrmDescendant
繼承自FrmBase
FrmDescendant
我更改了PnlClient
屬性FrmDescendant
,我在 PnlClient 上放置另一個控件(例如另一個名為TPanel
的PnlDescendant
) PnlClient
其對齊alClient
。PnlDescendant
現在完全覆蓋PnlClient
PnlDescendant
上放置了許多其他組件,不一定對齊,所以我害怕更改PnlDescendant
(例如將 align 設置為alNone
並調整大小)並失去位置如何為PnlClient
執行“恢復為繼承”?
主菜單或結構視圖中控件的彈出菜單中沒有任何內容...
目前使用 Delphi 10.4.1 悉尼
對於像我這樣的鍵盤用戶來說,這很容易:
在表單編輯器中單擊PnlDescendant
以使其成為焦點和選定控件。
按Esc到 select 其父PnlClient
。
按鍵盤上的Menu 鍵以顯示PnlClient
的上下文菜單。 如果您有一個沒有菜單鍵的廉價鍵盤,請按Shift + F10 。
單擊“恢復為繼承”。 (或者,更快:按下菜單項的下划線字符,可能是I 。)
(但請注意,這將完全刪除PnlDescendant
。可能您不希望這樣做,但這就是它的工作原理。)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.