realbasic-nug
[Top] [All Lists]

Re: Drawing string in Canvas

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Drawing string in Canvas
From: tjmac at tolisgroup dot com
Date: Sat, 31 Jul 2004 13:45:37 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <r02010200-1034-1294FB00E33211D881C2000A95C8DD62 at [192 dot 168 dot 2 dot 1]>
You'll need to add your line height to the current y value if the text lines 
are to be in normal paragraph layout.  However, your comment about the "two 
columns" implies that you really meant the x value.  If that is the case, 
decide where you want the column split to occur and set the new x value to 
this number.

Tim
--
Tim Jones                         tjmac at tolisgroup dot com

Quoting Jan Erik Moström <lists at mostrom dot pp dot se>:

> Probably a stupid question: if I have used
> g.drawString(someString,x,y,width)
> to draw some text, how do I get the y position after the text has been
> written.
> 
> (I want to draw a number of strings in two columns)
> 
> 
>                         jem
> -- 
> Jan Erik Moström   www.mostrom.pp.se
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://www.realsoftware.com/listarchives/lists.html>
> 


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>