加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Delphi – 为什么ExplicitWidth和ExplicitHeight继续出现在.DFM

发布时间:2020-12-15 05:22:13 所属栏目:大数据 来源:网络整理
导读:我们注意到,在检查更新时,我们的.DFM文件已添加了ExplicitWidth和ExplicitHeight属性,看起来没有什么特别的原因。 我的两个问题是,他们是什么,为什么他们被Delphi自动添加? 下面是具有该属性的示例: object Splitter2: TcxSplitter Left = 0 Top = 29
我们注意到,在检查更新时,我们的.DFM文件已添加了ExplicitWidth和ExplicitHeight属性,看起来没有什么特别的原因。

我的两个问题是,他们是什么,为什么他们被Delphi自动添加?

下面是具有该属性的示例:

object Splitter2: TcxSplitter
    Left = 0
    Top = 292
    Width = 566
    Height = 8
    Cursor = crVSplit
    HotZoneClassName = 'TcxXPTaskBarStyle'
    AlignSplitter = salBottom
    Control = BottomPanel
    Color = clBtnFace
    ExplicitWidth = 8
end

解决方法

来自Google搜寻….

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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读