Questions tagged [dfm]

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

91 questions
2
votes
1 answer

How to open and save a lot of child forms for reacting to parent form changes?

I have a parent form and thousands of child forms. Each time I change something that affects the parent form's DFM, I would like to open and save the child forms in order to make sure the IDE adapts as conseguence of the changes applied to the…
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
2
votes
3 answers

Does the order of properties in DFM file matter?

Could a not-standard order of the properties cause any problem? For example, the IDE stores a TButton component in the DFM file as follows: object Button1: TButton Left = 288 Top = 160 Width = 75 Height = 25 Caption =…
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
2
votes
1 answer

Can dfm files be linked into bpl files?

My project setup looks like this: There are multiple runtime packages. I'm not using design time packages. Each runtime package has its DCP, package and unit output directory set to .\Library\$(Platform)\$(Config). I'm not outputting them to the…
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
2
votes
1 answer

creating a dfm of words with letters

I am trying to create a dfm of letters from strings. I am facing issues when the dfm is unable to pick on can create features for punctuations such as "/" "-" "." or '. require(quanteda) dict = c('a','b','c','d','e','f','/',".",'-',"'") dict <-…
SuperSatya
  • 65
  • 1
  • 6
2
votes
0 answers

TFrame component : Resource not found

Tool: Delphi 6 Pro I created a new component in my main components package that is a descendant of TFrame using the Component -> New Component option. When I try to draw the component on a form during design time I get a "Resource {component class…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
2
votes
1 answer

Delphi 7 .DFM file display error

I have to maintain an Delphi 7 application. I've received the source code of this app, and when I try to open .DFM file or .DCU file by Notepad++, some of them display normaly with the source code, but some of them display incorrect with strange…
user2411800
  • 47
  • 1
  • 7
2
votes
1 answer

How to revert a frame to inherited when it contains a control aligned to client?

I sometimes design a frame where there are controls all over the place. It could be a grid with align=alClient, or maybe some panels and splitters. Or it could be something else entirely. Anyway, when I want to "revert to inherited" I have to make…
Svein Bringsli
  • 5,640
  • 7
  • 41
  • 73
1
vote
4 answers

Some way to rearrange components positions, sizes, ownership (properties in general) at run-time following a design-time rule

We have an application that have many components on the forms (panels, tabs, edits, comboboxes, etc...). But depending on the user profile, most of them could be filled automatically and/or not be visible. So, users could do their work faster. The…
EMBarbosa
  • 1,473
  • 1
  • 22
  • 76
1
vote
1 answer

Delphi DefineProperties unpublished property DFM order

I'm developing a component for Query. It works like the "Properties" feature of DevExpress, but I need to place the order of the Unpublished Property I wrote to DFM with DefineProperties in the DFM file at the top of the TCollectionItem. It works…
1
vote
0 answers

ML Kit crash with Dynamic Feature Module (conditional delivery)

I'm working on a feature that utilizes ML Kit Translation, and since this feature is only available for a specific country, I've moved the implementation for this feature along with ML Kit dependency to a dynamic feature module and set the delivery…
1
vote
2 answers

Stop C++Builder XE from removing/editing UI components in the .dfm files

How can I stop C++Builder XE from automatically editing .dfm files? I'm currently porting a rather big code base from BCB5 to XE. A lot of external components have been used in the old code, but are not yet installed for the new environment (since I…
mort
  • 12,988
  • 14
  • 52
  • 97
1
vote
0 answers

Automatically compiling associated form resources (dfm) into a compiled resource (.res) when building a static library (.lib / .a) in C++Builder

Does anyone know if there is a way to tell the C++Builder toolchain to automatically compile all of the associated resources (specifically form resources - DFM) into a .res when a static library is being built? I used to use packages to…
marko
  • 23
  • 4
1
vote
2 answers

How to prevent unwanted object in DFM

I copied the source LabeledEdit example with a TBoundLabel in components I'm writing to attach a convenient label to. They work fine but I'm getting issues loading the .dfm form (seemingly when my component is on another such as a…
Mike Scott
  • 169
  • 2
  • 8
1
vote
0 answers

Should I trim dfm before or after applying tfidf?

I used Quanteda package to create dfm and dfm-tfidf objects. I followed two ways to remove sparse features and create trimmed dfms. One was by directly applying sparsity argument on the dfm() function. The second was by reducing sparsity using…
user115916
  • 186
  • 11
1
vote
1 answer

How to add images to TImageCollection programmatically

I'm trying to load TImageCollection which I want to populate and save so it's available as a resource in a data module (.dfm file). This code adds images to the image collection from selected .png files and I can see the count increase, so it is…
Mike Scott
  • 169
  • 2
  • 8