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

[REBOL] Re: window resize and window scroll

From: larry:ecotope at: 7-May-2001 17:26

Hi Sterling Nice example, but a couple of small probs. The button colors don't change and the button is half off window after resize (maybe what was intended?). Here's a quick mod which changes button color and keeps the button at the bottom right corner. -Larry ----------------modified script------------------------- A quick resize example... REBOL [] main-lay: layout [ b1: button red "Quit" [quit] ] view/new/options main-lay [resize] main-lay/feel: make main-lay/feel [ detect: func [face event] [ switch event/type [ resize [ b1/color: random 255.255.255 b1/offset: main-lay/size - (b1/size) show b1 ] ] event ] ] wait none -------------end mod--------------------