your new drawRect probably needs to be zero based

i.e.
(window"popup").drawRect  = rect (0,0, newRect.width, newRect.height)

hth

-Buzz

At 1:07 PM +0800 10/10/02, you wrote:
>I've been trying to get this to work for hours with no success. Can someone
>be so kind as to point out the stupid thing I'm doing wrong here.
>I can get the window to resize correctly but when I test the drawrect it
>returns the original window value or when I reset it to match the new
>dimensions I get stretching.
>I've never used drawrect and am thinking this might be where my problems
>lie.
>anyway here's my current code within a parent script in the MIAW
>
>on resizeStage me
>  newRect=sprite(pImgSprite).member.rect
>   -- center to the montor
>   Scrn = the deskTopRectList[1]
>   Scrn_w = Scrn.width
>   Scrn_h = Scrn.height
>
>   Miaw_L=(Scrn_w/2)-(newRect[3]/2-pSpacing)
>   Miaw_R=Miaw_L+newRect[3]+pSpacing
>   Miaw_T=(Scrn_h/2)-(newRect[4]/2-pSpacing)
>   Miaw_B=Miaw_T+newRect[4]+pSpacing+100
>
>  (window"popup").rect=rect(Miaw_L,Miaw_T,Miaw_R,Miaw_B)
>  >  (window"popup").drawRect=newRect
>------------------------------------
>
>
>Just a thought: Has anyone ever simply created a faux MIAW image (border &
>background) and  composited the bits they need onto it like image and text,
>then used puppet sprite? Was it quick/robust etc.?
>
>Thanks in advance
>
>Brad
>-------
>" Right now I'm having amnesia and deja vu at the same time...
>... I think I've forgotten this before. "
>
>
>[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!]

[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