The 'y' coordinate in text drawing represents the BASELINE for the text...
not the TOP of the text. So, I would guess that your Canvas IS drawing the
text... except that you can't see it, because you are drawing it ABOVE the
'visible' area of the Canvas. Solution: Give the 'y' coordinate some
positive value GREATER THAN Graphics.TextHeight.

HTH

P. 




on 1/7/07 12:33 PM, Bart Pietercil at [EMAIL PROTECTED] wrote:

> Hi List,
> 
> passing sunday breaking my head on this simple thing.
> 
> Why does this code not draw a string in the new canvas ?
> 
> Sub Action()
>  Dim aCanvas As Canvas
> 
>  aCanvas = new Canvas1
> 
>  aCanvas.Top = 120
> 
>  aCanvas.Graphics.DrawString("allo,allo",0,0,50)
> End Sub
> 
> I have put a graphic inside the template canvas and I see it is
> created after performing the action. ( I see 2 images in the window)
> 
> But why the last line doesn't do a thing beats me....
> 
> Help REALLY appreciated
> 
> TIA
> 

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

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

Reply via email to