🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using GetTabbedTextExtent

#3251
From: Kent
Date: Tue, 08 Aug 2006 02:28
25 lines
1560 bytes
"Daryl" <devaccount@hotmail.com> wrote in message
news:44d5bcb9@newsgroups.borland.com...
> Hi
> Could someone please provide an example of using
GetTabbedTextExtent.
>

String str="Employee\t\t\tAlphaNumeric";
  int tabs[]={100,200,300};


  DWORD
values=GetTabbedTextExtent(Canvas->Handle,str.c_str(),str.Length(),3,t
abs);
  ShowMessage(String("Height=")+String(HIWORD(values)));
  ShowMessage(String("Width=")+String(LOWORD(values)));

values=GetTabbedTextExtent(Canvas->Handle,str.c_str(),str.Length(),0,N
ULL);
  ShowMessage(String("Height=")+String(HIWORD(values)));
  ShowMessage(String("Width=")+String(LOWORD(values)));


Kent
Technical Details
Message-ID: <44d7f6d9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44d5bcb9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,129874d7627e9285
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kent" <kentav@accessus.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44d5bcb9@newsgroups.borland.com>
Subject: Re: Using GetTabbedTextExtent
Date: Mon, 7 Aug 2006 21:28:48 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.206.177.205
Message-ID: <44d7f6d9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155004121 207.206.177.205 (7 Aug 2006 19:28:41 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail