dfm is the file format Delphi uses for designing Windows resources like window layouts etc.
Questions tagged [dfm]
91 questions
1
vote
0 answers
Is there a correct way to make Delphi designer see published properties of form and work with inherited dfm code in same time?
I got own hierarchy of forms: TFORM->TKCustomForm->TKObjectForm->TFSObjectForm.
TForm – standard Delphi class.
TKCustomForm – implement basic logic of my application forms (debugging, logging, resizing, etc.). No DFM changing. DFM Code:
object…

Oleksandr Morozevych
- 189
- 1
- 8
1
vote
1 answer
Assigning a value to a Label using procedures (Delphi)
I've been trying to assign a value to a Label (inserted by a TextBox) using procedures. Here's what I have so far:
type
TfrmM8E1 = class(TForm)
Button1: TButton;
txt1: TEdit;
lbl1: TLabel;
procedure Button1Click(Sender: TObject);
…

FARS
- 313
- 6
- 20
1
vote
2 answers
What is the new method for "remove_twitter" in dfm (Quanteda)?
I get the following message. Using R 3.6.3, RStudio 1.2.5042, and Quanteda 2.0.1.
corpus.dfm <- dfm(corpus, remove_twitter = TRUE)
'remove_twitter' is deprecated; for FALSE, use 'what = "word"' instead.
I understand what deprecated means in…

NZU
- 17
- 2
1
vote
1 answer
Delphi XE2 - DFM stream is randomly empty or corrupted while read function callback is called
I'm creating a package in which a custom image list reads and writes its content inside a DFM file.
The code I wrote works globally well in all compilers between XE7 and 10.3 Rio. However I have a strange issue in XE2. With this particular compiler,…

Jean-Milost Reymond
- 1,833
- 1
- 15
- 36
1
vote
1 answer
How to avoid writing a component in the form definition in .pas file
This is a follow up of this question:
Moving controls between Delphi components
In design time I put elements into my custom TPanel but when I write them to the DFM I change their names
procedure TPanelDialogo.VolcarFrameEnLista( );
var
i:…

Héctor C.
- 433
- 4
- 17
1
vote
1 answer
Prevent Delphi 10.2 from auto adding properties to TForm
I have a codebase that I'm working on that is written to work in both Delphi 5 and Delphi 10.2, until we get everything converted to D10.
Whenever I open a DFM file in 10.2 and save it, it automatically adds a DesignSize property to the TForm. This…

D.D
- 127
- 6
1
vote
0 answers
Cannot find function selectFeatures or the dfm argument keptFeatures
I'm using the quanteda package to construct DFMs in order to train a model on a dfm so that I can predict values for a new unknown dataset.
Using predict() this works fine as long as the both sets have the same number of features, if not I get this…

Hal
- 75
- 6
1
vote
1 answer
Have the structure view "stick" to a DFM in Delphi XE?
Is there a way to have the "Structure View" in Delphi XE "stick" to a particular DFM and not follow editor context?
In Delphi 7 and older this was its behavior, but in XE, it follows the context, meaning that whenever you edit code, it shows the…

Eric Grange
- 5,931
- 1
- 39
- 61
1
vote
1 answer
How do I save a matrix to a file?
I'm new to code on R. I've got a big document feature matrix(11mln*500000) which I need to save somehow to file which can be later read using not R. Trying to do this:
data<-readRDS("dfm")
new_data<-head(data, 11156133,…

Anastasia
- 26
- 1
- 7
1
vote
1 answer
R: Recreate same document term matrix with new data
I have exactly the same question in the post except I used #quanteda to generate a dfm for svm model (cause I need to have exact same dfms for crossvalidation prediction):
How to recreate same DocumentTermMatrix with new (test) data
However, my…

Chih-Ching Yeh
- 133
- 9
1
vote
1 answer
Delphi: how to lock dfm-s to not change...?
We used Delphi 6 long times ago. Our problem, that Delphi have two problems with DFMs:
1.)
When some linked resource (like DataSet) will removed, Delphi many times forget to ask you that "some of the resources are linked, you need to redirect...".…

durumdara
- 3,411
- 4
- 43
- 71
1
vote
0 answers
Override top/left when child controls are streamed in
I have a project where I try to share form files between Delphi and Lazarus. This actually works well excep with GroupBox there "top" values is caluculated against two different "tops". This menas that in Lazarus the controls are moved about 20-30…

Tom
- 3,587
- 9
- 69
- 124
1
vote
3 answers
Regular Expression Problem: Match in Context
I have a structured file with hierarchical text which describes a GUI in Delphi (a DFM-File).
Let's assume I have this file and I have to match all "Color = xxx" Lines, which are in the context of TmyButton (marked), but not those in other context.…

Roman Ganz
- 1,615
- 1
- 20
- 27
1
vote
0 answers
How will completed TComponent's WriteState
I know by reading the stream, using the TComponent.Loaded method, that all other components are ready.
Similar to Loaded, exists something by writing, that say, all components are written?
thanks

willi
- 11
- 1
0
votes
1 answer
quanteda - dfm (by dfm_lookup) doesn't show the columns of terms as example
I am following this tutorial to create a document-feature matrix with features defined by my dictionary. What I have now is an output of two columns giving my document ID and the frequency of all features in my…

NHH
- 11
- 2