Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

active title bar height URGENT!!!

Posted on 2004-10-26
3
Medium Priority
?
539 Views
Last Modified: 2010-04-16
Hi guys,

How do i get the height of the active title bar of the form?

Please answer as detail as possible :)
Thank you!
0
Comment
Question by:AgeOfWars
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12410225
Use GetSystemMetrics with parameter SM_CYCAPTION
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12410237
procedure TForm1.Button1Click(Sender: TObject);
var
  caption_height   : Integer;
begin
  caption_height := GetSystemMetrics(SM_CYCAPTION);
  ShowMessage(IntToStr(caption_height));
end;
0
 
LVL 12

Accepted Solution

by:
esoftbg earned 1000 total points
ID: 12410251
Use ClientHeight to determine the height (in pixels) of the form’s client area. The client area is the usable area inside the form's border, excluding the title bar, scroll bars, and so on.

So the next code will get the TitleBar Height if you have not Horizontal ScrollBar and MainMenu ....

procedure TForm_Main.Button1Click(Sender: TObject);
var
  TitleBarHeight: Integer;
begin
  TitleBarHeight := Height - ClientHeight;
end;
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 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