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

[REBOL] Re: Fw: Scrolling text

From: brett:codeconscious at: 7-Jun-2001 21:30

Hi Scott, Thanks for your message. At first I thought you had it! But alas... I've been checking some more and that extra show you put in makes it appear that the problem is fixed but it is not. You can see this by scrolling to the bottom of the area again and then instead of hitting the button click in the field then click on the button. The result is the area is back at the top again. :) So I ended up doing some more digging and I believe it comes down to the fact that the area and the field share the same PARA object which includes a field that records the scroll offset.
>> layout [the-field: field the-area: area] >> same? the-field/para the-area/para
== true So in a new version if I ensure that area has a new para object different to field - there is no problem. view layout [ the-field: field "sample" the-area: area 200x50 {This is some text that just happens to run over multiple lines. If you scroll to the bottom of this text area using the arrow keys you will see the text of this area scrolling up. } button "Show" [show the-field show the-area] do [the-area/para: make the-area/para []] ] I suspect that area should get its own version of a para by default. So I'll send this off to feedback. Thanks for your help! Brett.