Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 119897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:43:32+00:00 2026-05-11T03:43:32+00:00

I thought there was something in GExperts to do this, but I can’t see

  • 0

I thought there was something in GExperts to do this, but I can’t see it if there is.

I have to change the SCALED property (from the default of TRUE to FALSE) in each form in a project that contains about 100 different forms. Because the default value of SCALED is TRUE, it doesn’t actually appear as a line in the .DFM file (when viewing as text), so there isn’t anything I can ‘get’ at with GREP (etc).

Can anyone suggest a quick way of setting this property in all these forms? The forms are subclasses of various different classes and I really don’t want to do make some kind of intermediate TForm descendant which overrides the SCALED property – partly because I tried (briefly) to do this and discovered that setting the SCALED property to be false after the inherited create made no difference to the form, and setting it before the inherited create caused an exception. 🙂

Anyone got any suggestions? I really want to avoid opening all those forms one by one if I can help it, if only because I’m bound to miss one!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:43:32+00:00Added an answer on May 11, 2026 at 3:43 am

    Provided that all your DFM files are not binary, but text (which is a good idea, unless you need to be compatible with Delphi 4 or earlier) you can of course use grep / sed / awk. The format of the DFM is not fixed, and instead of

      OldCreateOrder = False   Scaled = False 

    it could also contain

      OldCreateOrder = False Scaled = False 

    So you can grep for one other property that only TForm has, which is set in all of your forms to a value that is stored in the DFM (OldCreateOrder would be a candidate), and replace the lines with another line containing two properties.

    The format will be corrected the next time you save that form in the IDE.

    Edit:

    If your forms are binary, then use the convert.exe tool in Delphi bin directory (use full path, as there is another convert.exe in Windows) to convert the DFM to text, then add the missing property, then (optionally) convert the DFM back to binary. And if you are unhappy about the weird format – convert the DFM from text to binary and back to text, this will give you a correctly formatted text DFM file. All of this is easily scriptable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this link and as you can see there is an extra /
I thought what I wanted would be pretty simple, but there must be something
I don't think this is possible but I thought I'd throw it out there.
So I know there is a few templating engines out there, but I thought
I always thought that parentheses improved readability, but in my textbook there is a
Is there a better way of doing something like this: if status == 1:
I'm wondering if there's a simpler way to do this: Position something centre-screen horizontally
Is there something I'm missing with NSUInteger. I originally wanted to do this in
I asked this question previously and thought I had it figured out but it
Maybe this isn't possible, I've never seen it myself, but thought I'd ask. If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.