On May 19, 2006, at 11:45 PM, Juan Salvatierra wrote:
dim o as new canvas
Typically, the compiler will let you do this but will not return o as a functional canvas with a graphics object. When o.graphics.textfont = "system" is attempted a nil object exception is raised.
The approach is to have an instance of canvas available in a "control array", say Canvas1 with index = 0, and clone it like this:
dim o as canvas = new Canvas1 Best, Jack
o.left=x o.top=y o.width=80 o.height=22 objeto.append(o) o.graphics.textfont="system" o.graphics.textsize=14 o.Graphics.ForeColor= RGB(255,255,255) // White? o.Graphics.DrawString "Nuevo texto",3,3
_______________________________________________ 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>
