Windows XP - Normal and classic themes

Posted on 2006-03-22
Last Modified: 2010-04-04
HI there,

I just wrote an app in delphi 7 which, when it starts up goes to max screen size. Now if I have my Windows XP set to classic theme, it takes up all the screen, however if I used one of the fancy windows xp themes (like the default blue or silver etc) I get a gap at the top of the screen and also cuts off some space at the bototm of the screen.

Whats up?

Cheers all
Question by:wildzero
    LVL 11

    Expert Comment

    how do you maximize it?
    LVL 10

    Author Comment

    Using the Maximize property of the form (window state?)
    LVL 10

    Accepted Solution

    Interesting... here is what I have found

    If I have the Form1 windowstate property set to wsMaximized then
      - Windows XP default blue theme it shows up with a gap at the top of the program and the bottom is cut off
      - Windows XP classic it shows up fine

    so what I did is set the window state to wsNormal then ran the software and maximized it myself and that worked fine in both.

    So what I have to do is set it to wsnormal then on Form1.OnCreate do
     Form1.WindowState := wsMaximized;

    and it works fine.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now