Questions tagged [dfm]

dfm is the file format Delphi uses for designing Windows resources like window layouts etc.

91 questions
41
votes
4 answers

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

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…
Pauk
  • 2,623
  • 3
  • 26
  • 28
35
votes
2 answers

Strange [number]s in Delphi DFM files - origin and necessity?

I need to change a large number of Delphi components defined in one package to similar ones in another package. Much of the grunt work can be done by replacing text (component types and properties) in the DFM files - saved as text of course. I have…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
12
votes
7 answers

Does Delphi sometimes revert text form files (DFM) to binary format?

Our Delphi 7 development team stores form files (dfm) in text mode, and uses a source control system (Subversion) to track changes. Sometimes, we noticed that a form file returned to binary format between revisions, causing diff tools like…
mjn
  • 36,362
  • 28
  • 176
  • 378
10
votes
4 answers

Is there a Delphi option to 'lock' the design (layout) of a form against accidental changes?

After years of Delphi development I now have hundreds of forms shared throughout our Applications. Compilation ranges from Delphi 7 through to XE, thus one form might be opened in any IDE. The well-known Explicitxxx property addition after Delphi 7…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
10
votes
1 answer

What does the Text DFM context menu option mean?

When you right click on a Delphi form you get the popup context menu. The bottom option is Text DFM. This option can either be checked or not checked. What does it mean when this option is checked or unchecked?
9
votes
4 answers

A quick way to remove properties from .dfm files in Delphi

I have recently modified one of my components, and it so happens it is no longer using one of the properties it used before. However, those properties are written in multiple .dfm files throughout the project. Now, when i try to compile the project,…
ertx
  • 1,494
  • 2
  • 15
  • 21
9
votes
5 answers

Is there a tool which can extract all SQL command strings from Delphi form files?

For documentation and further inspection, I would like to run an 'extract strings' on all DFM files in many projects to find all SQL statements. Are there command line tools which can do this? The DFM files are all in text format.
mjn
  • 36,362
  • 28
  • 176
  • 378
8
votes
4 answers

Moving to use of Delphi packages - best practice please?

I am trying to start making my own libraries avaialble as packages prior to compiling my Apps with these packages hence modularising my code. For years I've 'sort of' understood packages, breathing a sigh of relief when I load a component package…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
8
votes
1 answer

Longevity of using the Delphi text DFM format for my own store and retrieve

Over time I've rolled my own formats for saving and loading object properties but on having to revisit this I'm wondering about using Delphi's own text DFM format. I know tha this is really an 'internal' format, but the reader for it now seems…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
8
votes
5 answers

Delphi: 'Property ClientHeight does Not Exist'

My Delphi program builds and compiles fine, however as soon as it is run in the debug mode, I get the following error; Property ClientHeight does Not Exist After looking through all of the .DFM file sources, in every form the code is there which…
Danny
  • 601
  • 2
  • 9
  • 11
7
votes
1 answer

How to tell Delphi to not include non-published properties in DFM?

I have a custom control: type TContosoFrobber = class(TCustomControl) private end; Internally, my component creates a control: type TContosoFrobber = class(TCustomControl) private FMyDateTimePicker: TDateTimePicker; public …
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
6
votes
6 answers

Delphi DFM not found

I am having one xyz.pas file reference in my project. But that file is not with me. I am having the xyz.dcu and xyz.obj file of that xyz.pas file. When I tried to compile the project I have got the Error "xyz.dcu not found". So i have included the…
naren
  • 629
  • 4
  • 15
  • 22
6
votes
3 answers

"Not enough storage space" when installed with Dynamic Feature Module (App Bundle)

I have a unity project (exported using Unity 2019.3) installed dynamically with DFM of Android App Bundle and uploaded it to google play for internal testing, the dynamic module is downloading fine on demand but when I run UnityActivity I encounter…
6
votes
1 answer

What does the Cholmod error 'problem too large' means exactly? Problem when converting a dfm to a df

This is a new version of another question posted, now with a reproducible example. I am trying to convert a document-feature-matrix from 29117 Tweets to a data frame in R, but get the error "Error in asMethod(object) : Cholmod error 'problem too…
Mette
  • 315
  • 1
  • 3
  • 12
5
votes
1 answer

Do we have Button down property as Boolean

I am assigned to convert delphi code to .Net, and was wondering if we have down property of button as in delphi has? As answered in this link How to make a Delphi TSpeedButton stay pressed if it's the only one in the group Can we achieve this…
Syed
  • 308
  • 1
  • 4
  • 12
1
2 3 4 5 6 7