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

[REBOL] Re: Fw: Scrolling text

From: gjones05:mail:orion at: 7-Jun-2001 5:41

From: "Brett Handley"
> The gurus would know this but as for moi ... > Please try the code below. > > view layout [ > the-field: field "sample" > area 200x100 {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. What was unexpected > for me was that the text of the > field will also be scrolled up as > soon as the face is reshown - which > will happen when you click on the button > below. > Next try scrolling to the top and again > hit the button. > } > button "Show" [show the-field] > ] > > Now. I have an idea where I can look > to find out why this is happening, but > I would appreciate an answer before I > go digging interminably. Also, it strikes > me that the above example could be a > relatively common layout so this problem > can end up being a relatively common occurrence. > What is my best bet going forwards to > avoid the unwanted field text scroll?
Hi, Brett, I remembered seeing something similar a few months ago, but it was text on a button scrolling!!! The archive url (watch for wrapping) http://www.escribe.com/internet/rebol/index.html?by=OneThread&t=%5BREBOL %5D Odd scrolling behaviour%3F I didn't ever really understand what Allen meant in the final thread post. My intuition suggested that assigning the area an index and updating it would "fix" the problem, and it does (see code below). But this seems to be a buglet. If no one offers any more substantive rationale for the behavior, I would submit it as a possible bug to feedback. view layout [ the-field: field "sample" the-area: area 200x100 {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. What was unexpected for me was that the text of the field will also be scrolled up as soon as the face is reshown - which will happen when you click on the button below. Next try scrolling to the top and again hit the button. } button "Show" [show the-area the-field] ] Cheers! --Scott Jones