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

[REBOL] Re: Area Resizing

From: mattsmac:hotmai:l at: 23-Sep-2003 14:23

Thanks Gregg, that did the trick. Matt Hi Matt, MM> So I'm thinking that there is just an evaluation function or something MM> that needs to be called, but I have no idea what that would be. Faces will cache the list of formatted lines (correct me if I mis-state this VID gurus) in face/LINE-LIST. All you have to do is clear that and show the face to refresh it. s: copy "" insert/dup s "abcdefg " 200 insert-event-func fn: func [face event][ if event/type = 'resize [ ; we get the screen face size in face/size here print a/size: lay/size - 10x10 a/line-list: none show a ] event ] view/options lay: layout [ origin 5x5 a: area 300x200 s wrap ] 'resize remove-event-func :fn -- Gregg _________________________________________________________________ Get MSN 8 Dial-up Internet Service FREE for one month. Limited time offer-- sign up now! http://join.msn.com/?page=dept/dialup