[REBOL] Re: Area Resizing
From: mattsmac:hotmai:l at: 23-Sep-2003 14:23
Thanks Gregg, that did the trick.
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
view/options lay: layout [
a: area 300x200 s wrap
Get MSN 8 Dial-up Internet Service FREE for one month. Limited time offer--
sign up now! http://join.msn.com/?page=dept/dialup