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

前端 未结 3 2093
盖世英雄少女心
盖世英雄少女心 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:15

    From Googling....

    Original article can be found here.

    The Explicit properties remember the previous bounds of a control before the Align or Anchor properties are changed from their defaults.

    The only time the Explicit properties are not written is when the Align property is set back to its default value of alNone.

    This is when the Explicit properties are actually used by the control to reset its bounds to what it was previously.

提交回复
热议问题