🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5176

ClientRect of a tab

#5176
From: Thorsten Kettner
Date: Fri, 30 Sep 2005 11:51
15 lines
1607 bytes
Hi,
I would like to know if it is possible to get the rect of the
tab of a tab control - I mean the rect where you click on to
change the tab sheet. I am using a TPageControl and I am sure
there is no way to get the coordinates by means of VCL. Hence,
as this control is originally a Windows control, I am asking
here. The reason why I need this is: I want the control to be
automatically drawn (no OwnerDraw style) with icon and text.
Thus the width of the tabs differ (they are calculated by the 
system to be wide enough to show icon and text). Now I want to 
know if a user clicked in the icon or beside it.

TIA.
Thorsten.
Technical Details
Message-ID: <433d26d4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fae0a495018947bb,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Sender: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Reply-To: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Subject: ClientRect of a tab
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.196.94     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <433d26d4$1@newsgroups.borland.com>
Date: 30 Sep 2005 04:51:48 -0700
X-Trace: newsgroups.borland.com 1128081108 207.105.83.66 (30 Sep 2005 04:51:48 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail