From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,410af5103e59350f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-06 00:06:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!cyclone.swbell.net!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!news.mel.connect.com.au!not-for-mail From: "Matthew Baulch" Newsgroups: comp.lang.ada Subject: Re: Ada facility for determining dimensions (height/width) for display/print character string? Date: Wed, 06 Nov 2002 19:06:08 +1100 Organization: Customer of Connect.com.au Pty. Ltd. Message-ID: References: NNTP-Posting-Host: 210.11.36.129 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: perki.connect.com.au 1036569992 5644 210.11.36.129 (6 Nov 2002 08:06:32 GMT) X-Complaints-To: abuse@connect.com.au NNTP-Posting-Date: 6 Nov 2002 08:06:32 GMT User-Agent: Pan/0.13.0 (The whole remains beautiful) Xref: archiver1.google.com comp.lang.ada:30428 Date: 2002-11-06T08:06:32+00:00 List-Id: On Thu, 31 Oct 2002 22:17:52 +0000, RussJohnson@frontiernet.net wrote: > Does Ada have a facility for determining the dimensions (height and width) > that it will take to display/print a given string of characters? > > - Russ Johnson > > JohnsonRuss@NetZero.com > Terre Hill, PA If you are talking about width/height in terms of columns/rows in test mode then you can find out these figures by dividing the number of chars by the width of your string and finding the roof of that number. In the case that C.R's are important then you will have to account for these accordingly.