[REBOL] Re: Area Resizing
From: greggirwin:mindspring at: 23-Sep-2003 11:53
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