Hi,

I tried p.graphics = canvas1.backdrop
but I got Cannot assign a value to  this property
I don't know what to do to get it to work

  Dim f as folderItem
  Dim p as Picture
  Dim fName as String

  fName = "ADVCTMP1.PICT"


  If fName<>"" then
    f = getFolderItem(fName)   // this'll attempt to create a
    // folderItem ref in the same folder
    // as your app
    If f <> Nil then
      p.Graphics = Canvas1.backdrop
      f.saveaspicture(p)
    End If
  End if




  // Reset Variables
  fName=""
  f=nil
  pic=nil
  // Clear Canvas1
  Canvas1.Graphics.ClearRect 0, 0, Canvas1.width, Canvas1.height
  Canvas1.Backdrop = pic
  // Set PIC as a NEW Picture
  pic=New Picture(graphics.width, graphics.height, 32)




Brian Heibert
[EMAIL PROTECTED]


On May 5, 2006, at 3:37 AM, Maarten de Vries wrote:

You left p nil in your code, so you can't save it as a picture. You have to
make p a picture first.

Maarten


On 05/05/06, Brian Heibert <[EMAIL PROTECTED]> wrote:


I tried to use that


  Dim f as folderItem
  Dim p as Picture
  Dim fName as String

  fName = "ADVCTMP1.PICT"


  If fName<>"" then
    f = getFolderItem(fName)   // this'll attempt to create a
    // folderItem ref in the same folder
    // as your app
    If f <> Nil then
      f.saveaspicture(p)
    End If
  End if


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


_______________________________________________
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