我应该在从TObject或TPersistent派生的类的构造函数中调用"inherited“吗?constructor TMyObject.Create; inherited Create; // Delphi doc: Do not create instances of TPersistentUse TPersistent as a base class when declaring objects that are not components, but that need to be
(Firemonkey,XE7)我有一个带有TTextControl祖先的组件,引入了SizeConstraints,它只是基于VCL版本。设计器不会将约束属性保存到.FMX文件中。当我将“视图表单视为文本”时,约束并不存在,即使我之前编辑了属性值(是的,我可以在对象检查器中编辑它,但它没有保存)这段代码有什么问题?TSizeConstraints = class(TObject)published property MaxHeight: Single index 0 read FMaxHeight write SetConstraints;
p