On Apr 25, 2006, at 2:11 PM, Juan Salvatierra wrote:

Hi all,

I'm having a curious problem with graphic property of pictures in RB 5.5.

Many times if I use a pict file in my code, opening it as a picture, it seems not to have a graphics property. I mean, it appears as nil in the debugger and, it you try to use it, it comes out with a nil object error. If insted of a pict file, you use any other file type (jpg, png, even pdf) everything works perfectly well.

But you can use the picture (the pict) if you don't try to acces the graphics property.

Has anyone experienced something like this or knows something about it?


This is well-known. Create a new picture -- which should have non- nil Graphics property -- then copy the old picture into the Graphics property of the new picture using Graphics.DrawPicture.

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