Delphi - Why does ExplicitWidth and ExplicitHeight keep appearing in .DFM files and what is it?

前端 未结 3 2066
盖世英雄少女心
盖世英雄少女心 2020-12-17 07:42

We\'ve noticed that when checking in updates, our .DFM files have added ExplicitWidth and ExplicitHeight properties - but we don\'t kn

3条回答
  •  醉梦人生
    2020-12-17 08:31

    Delphi adds value of published properties to DFM file only when its value different from default.

    For example:

    property ExplicitWidth: Integer read FExplicitWidth write FExplicitWidth default 1;

    If ExplicitWidth value is not 1 then it will be written to the DFM. When the "default" is not defined then any value will be written to the DFM.

    TcxSplitter is not standard Delphi component, you'd better ask its author about the purpose of the properties.

提交回复
热议问题