【发布时间】:2019-03-28 18:09:47
【问题描述】:
我想制作自己的简单组件,其中包含其他组件。它看起来像:
TTag = class(TLayout)
private
_line: TLine;
_label: TLabel;
_background: TRoundRect;
_button: TLabel;
public
constructor Create(AOwner: TComponent); override;
end;
但在 Delphi IDE 重新打开后,它看起来像:
如何添加子组件来避免这种奇怪的行为?
【问题讨论】:
-
所有子组件只需设置 Stored := False
标签: delphi firemonkey custom-component