Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: how to resize a backdrop

From: carl:cybercraft at: 17-Nov-2001 12:27

On 16-Nov-01, Ammon Johnson wrote:
> What is the wait necessary for? I couldn't see any difference, > running it with or without the wait that you say is necessary. The > backdrop resizes nicely for me regardless of that wait.
On my Amiga the window resizes but the backdrop doesn't resize to fit it, though the gradient has changed to reflect the larger size. So, at the end, I've still a bare band around the right and bottom. Is there some cross-platform issues here? Or perhaps a bug in Amiga View? The gradient should end up filling the whole of the window, shouldn't it?
> Enjoy!! > Ammon > ---- Original Message ----- > From: "Anton Rolls" <[arolls--idatam--com--au]> > To: <[rebol-list--rebol--com]> > Sent: Wednesday, November 14, 2001 9:38 PM > Subject: [REBOL] how to resize a backdrop >> I have figured out a method to make the >> backdrop resize. I believe there must >> be a better way to increase the size >> of the clip region and refresh, but I am >> using WAIT here: >> rebol [] >> view/new lay: layout [size 200x200 bd: backdrop blue effect >> [gradient]] >> lay/size: lay/size + 40x40 >> show lay >> wait 4 ; not necessary - just for demo >> bd/size: bd/size + 40x40 >> show bd >> wait 0 ; a WAIT here is necessary >> wait none ; wait for user to press close
-- Carl Read