Questions tagged [dfm]

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

91 questions
5
votes
2 answers

Are there any Delphi DFM to Delphi source code convertion tools?

The Delphi form designer is very good but we need to work directly from source. Is there a tool or script that can take a batch of DFM files and convert them to Delphi source code?
MX4399
  • 1,519
  • 1
  • 15
  • 27
5
votes
3 answers

How to do bulk -transformation of form to frame- in Delphi?

I have a form with aprox with 200 visual components on it, with a lot of events assigned, and I need to change it now to a frame.I don't have enough time to copy all the components,re-arrange all the visual components and re-assign all the events,…
RBA
  • 12,337
  • 16
  • 79
  • 126
5
votes
1 answer

Writing C++ Builder/Delphi component and save a binary property to DFM files

I wrote a C++ builder component to display SVG files perform some stuff on them. For now, I published a property named SvgFile (UnicodeString) which can be initialized in the IDE with the file name of the SVG file. This works fine. This property is…
A.G.
  • 1,279
  • 1
  • 11
  • 28
4
votes
3 answers

Migrating Delphi DFM's with special characters to D2009

I've got a number of Delphi forms where we use a couple of special characters - the 'degree' symbol, and the 'ohms' symbol. These characters are used in label captions saved in the DFM file and are not generated or modified at runtime. Back along…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
4
votes
1 answer

Include different form (.dfm) file based on a conditional define

We produce two versions of our software for two slightly different versions of machine. The hardware used on the two machines is sufficiently different that we maintain two projects, Project1 and Project2. Some code (.pas and .dfm, as appropriate)…
AlainD
  • 5,413
  • 6
  • 45
  • 99
4
votes
6 answers

Delphi "EClassNotFound" errors, and corrupted DFM possibility

I am getting a cascading set of "EClassNotFound" errors in in my Delphi 2007 project. Doesn't seem to be caused by the missing Name property value as often is the case, and though adding RegisterClass(XXX) in the initialization section(s) fixes the…
Jamo
  • 3,238
  • 6
  • 40
  • 66
4
votes
2 answers

Help with Delphi DFM generation based on Database Tables (Scaffolding?)

I'm new to delphi and I'm looking up on ways to learn more about delphi underlying technology plus make something useful here in my job in the process, also if anyone has any tip or see anyway i can improve my idea please fell free to speak your…
Jonathan DS
  • 2,050
  • 5
  • 25
  • 48
4
votes
2 answers

Delphi XE2 changes DFM even though nothing has been changed

Possible Duplicate: Is there a Delphi option to ‘lock’ the design (layout) of a form against accidental changes? We recently changed have changed from StarTeam to SVN, but we're having problems with our DFM files. It looks like Delphi changes the…
Liezzzje
  • 430
  • 2
  • 6
  • 17
3
votes
1 answer

How to prevent Embarcadero C++Builder changing the bitmap code within the DFM all the time?

I have to work with C++Builder. Depending on the mood, the IDE changes the hex-encoded bitmap property within the DFM file. Even if I have not changed anything within the GUI. I'm using GIT and all the time this will result in a diff of the .dfm…
powerpete
  • 2,663
  • 2
  • 23
  • 49
3
votes
1 answer

How to prevent .dfm files from breaking string values from middle of words?

I was searching for name of a table in all .pas and .dfm files of my project using Grep Search. It only could find results in .pas files, while I was sure that there was at least one dataset that use this table. I searched the name of dataset in…
saastn
  • 5,717
  • 8
  • 47
  • 78
3
votes
3 answers

Is it possible to using Data Module without .DFM?

I offloaded all ADO hood in a separate Data Module, so a single module can be referred by several applications. All my applications basically need only two worker methonds to access data: AdoQuery delivers a result set in a form of…
Interface Unknown
  • 713
  • 10
  • 26
3
votes
1 answer

Delphi DFM checker

I have next problem. Other team was changed(deleted) property from component and now some forms openings with message "Error reading form property .... does not exists". How can I check correctness dfm-file in Delphi project ?
YoungMaster
  • 395
  • 3
  • 17
2
votes
0 answers

Difference not detected with GIT for Windows but GIT/MSYS2 detect it

I have a text file called Main.dfm. In some cases only a single letter is changed in the file. Comparing the same file in the same directory with git for windows and git/msys2 gives different results. (Upper Window: Git for Windows detects no…
powerpete
  • 2,663
  • 2
  • 23
  • 49
2
votes
2 answers

quanteda: remove tags (#,@) and url in on string

Consider the following string: txt <- ("Viele Dank für das Feedback + die Verbesserungsvorschläge! :) http://testurl.com/5lhk5p #Greenwashing #PR #Vattenfal") I create a dfm (Create a document-feature matrix) and pre-process the string as…
Apache
  • 21
  • 2
2
votes
1 answer

Using constant across .dfm files in embarcadero / RAD studio

I have a Windows Vcl Application which have several forms inside. I wanted to standardize the layout for all of these forms. So I wanted to declare some constants which I can apply across all of my .dfm layout file. For example, this main from is…