We've noticed that when checking in updates, our .DFM
files have added ExplicitWidth
and ExplicitHeight
properties - but we don't know why.
My questions are:
- What are these properties for?
- Why are they automatically added by Delphi?
Below is an example showing the added ExplicitWidth
property:
object Splitter2: TcxSplitter
Left = 0
Top = 292
Width = 566
Height = 8
Cursor = crVSplit
HotZoneClassName = 'TcxXPTaskBarStyle'
AlignSplitter = salBottom
Control = BottomPanel
Color = clBtnFace
ExplicitWidth = 8
end
Delphi adds value of published properties to DFM file only when its value different from default.
For example:
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.
With DDevExtensions you can disable storing these properties in the dfm:
http://andy.jgknet.de/blog/?page_id=10
From Googling....
Original article can be found here.