Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TPageControl tab height question

Status
Not open for further replies.

walkesh

Programmer
Mar 31, 2009
9
US
Is there a way to get the height of the tabs shown in the TPageControl? I have TPageControl with numerous pages, and my tabs are shown on the top of the page control. I need to be able to determine what the height of the tab portion of the TPageControl is. The TabHeight Property in the designer is set to 0, so that means the the tabs size automatically. At run time, I would like to be able to determine the height of the tabs. Does anyone have any suggestions? I am using Delphi 2005.
 
Cant you do something like:
Code:
tabheight = pagecontrol1.height - tabsheet1.height - tabsheet1.borderwidth;

That should pretty much be it.

[bobafett] BobbaFet [bobafett]
Code:
if not Programming = 'Severe Migraine' then
                       ShowMessage('Eureka!');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top