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: Thomas Tempelmann <listuser at tempel dot org>
Date: Sat, 31 Jul 2004 22:56:58 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Jan Erik Moström wrote:

>Probably a stupid question: if I have used g.drawString(someString,x,y,wid
th)
>to draw some text, how do I get the y position after the text has been
>written.

The popular answer is: Get the lenth of the text using the StringWidth 
function.
My answer is: Don't expect this always to work. See this:


-- 
Thomas Tempelmann,
http://www.tempel.org/rb/
http://www.tempel.org/software/


_______________________________________________
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>