At 12:43 +0100 13/01/02, Michael von Aichberger wrote:

>wMIAW = window("myWin")
>wMIAW.rect = rect(0, 0, 1024, 768)
>wMIAW.fileName = "blabla.dir"
>open wMIAW
...
>wMIAW.image.copyPixels(member("Vorlage").image, member("Vorlage").rect *
>scaleFactor, member("Vorlage").rect)
...
>Now, what happens? When I first run the program, the window opens, but
>nothing happens.

The MIAW window needs to finished drawing before you copypixel into 
it, or it will just wipe its window clean again when it updates 
itself.
So you could:

   tell wMIAW to updateStage

Before the copyPixel.

And don't show the Miaw before the copyPixel. Here is an example:

   pMiaw = window "m"
   tell pMiaw to updateStage
   tImg = member("p").image
   (pMiaw.image).copyPixels(tImg, tImg.rect, tImg.rect)
   pMiaw.movetofront()

Jakob
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to