comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Ada facility for determining dimensions (height/width) for display/print character string?
Date: Tue, 29 Oct 2002 23:48:25 GMT
Date: 2002-10-29T23:48:25+00:00	[thread overview]
Message-ID: <d7Fv9.159526$qM2.49673@sccrnsc02> (raw)
In-Reply-To: mailman.1035925742.9365.comp.lang.ada@ada.eu.org

>Does Ada have a facility for determining the dimensions (height and =
>width) that it will take to display/print a given string of characters?
  Yes.  When an Ada program is controlling a skywriter, characters are
100 meters square.
  If the Ada program is controlling a Patriot missile, an attempt to
display a string of characters gives an output of zero size.
  Or perhaps you are thinking of, say, a Windows platform.  If you are
using Claw, function Claw.Attributes.Size(Canvas, Text) returns the
height and width of the string Text when displayed on the given Canvas
in its current font.
  Ada is used in many contexts.  There is no single "Ada facility" for
doing what you want.  It depends on the platform and your library.



       reply	other threads:[~2002-10-29 23:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1035925742.9365.comp.lang.ada@ada.eu.org>
2002-10-29 23:48 ` tmoran [this message]
2002-10-30 10:59   ` Ada facility for determining dimensions (height/width) for display/print character string? Larry Kilgallen
2002-11-01  3:17 RussJohnson@frontiernet.net
2002-11-01  2:37 ` Larry Kilgallen
2002-11-05 11:21 ` Georg Bauhaus
2002-11-12 20:54   ` Russell L Johnson
2002-11-06  8:06 ` Matthew Baulch
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox