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 8368459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:23:42+00:00 2026-06-09T13:23:42+00:00

I have created a Delphi 7 application. The main form is a TForm object

  • 0

I have created a Delphi 7 application. The main form is a TForm object with the below properties:

BorderIcons:
- biSystemMenu = True
- biMinimize = True
- biMaximize = False
- biHelp = False

BorderStyle = bsSizeable

Position = poScreenCenter

Event OnCanResize: Resize := FALSE;

The idea is the form cannot be maximized and cannot be resized, that’s all.
It works fine, but when I run on certain systems (Windows 7 and Windows XP), there are scrollbars shown. Again, only in certain systems.

I thought this is because the screen resolution of the display is too small, so the app window got clipped. But, it is not. The application was displayed perfectly in the center.

So far, I tried to apply many tricks and tips from the internet:

OnFormShow:

 if VertScrollBarVisible(MainForm.Handle) then
  begin
    MainForm.Constraints.MaxHeight := MainForm.Constraints.MaxHeight + 10;
    MainForm.Constraints.MinHeight := MainForm.Constraints.MinHeight + 10;
    MainForm.Height := MainForm.Height + 10;
  end;

  if HorzScrollBarVisible(MainForm.Handle) then
  begin
    MainForm.Constraints.MaxWidth := MainForm.Constraints.MaxWidth + 10;
    MainForm.Constraints.MinWidth := MainForm.Constraints.MinWidth + 10;
    MainForm.Width := MainForm.Width + 10;
  end;

And it fixed on some systems … but not all.

This puzzles me.

I got another tips, to set the TForm.Scaled := FALSE, and TForm.AutoScroll := FALSE.
That fixed those systems, BUT the bottom of the form was cut off! … a little bit.

So, now I am asking …

Are these TForm parameters, like WIDTH, HEIGHT, are saved and stored somewhere in the system??? And the Windows OS forces the app to take that value?

Because, in the past, my app did not have this issue at all. But then, I changed the form size, add some more gui, and then the issue came. Now, I am thinking, the original TForm properties are stored somewhere.

  • 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. Editorial Team
    Editorial Team
    2026-06-09T13:23:43+00:00Added an answer on June 9, 2026 at 1:23 pm

    Borders in Windows > XP are bigger. I’m not sure what the Constraints do, cause I haven’t used them. Have you tested to use a bigger distance between your components and the right/bottom end of the form?

    EDIT: Some components have different default-sizes on different OS.

    EDIT 2: Your form should not be resizable, so you can turn off the sizing with BorderStyle := bsSingle.

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

Sidebar

Related Questions

I have created MDI application in Delphi. Lets assume that I have a bunch
I have a SOAP application created with delphi. Input comes to server correct. But
We* have a web application, created by Delphi + Intraweb (for the front end/web
I have a service application created with Delphi, and managed to install it from
I have created an WCF application that will be consumed by a Delphi 7
I have created a routine to make the corners of Delphi visual controls to
I have a DirectShow filter created with Delphi Pro 6 and the DSPACK direct
I have created a JSP / servlets application running in Tomcat 7. It runs
I have created an android application that calls (using kSOAP library) a SOAP based
I have a Delphi 6 application that is heavily multithreaded. I have a component

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.