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

[REBOL] Re: Area bug?

From: carl:cybercraft at: 5-Sep-2002 22:08

On 05-Sep-02, [atruter--hih--com--au] wrote:
> Out of the many problems I have found answers to on the ml and > elsewhere, one still eludes me. Given: > view layout [ > area 100x25 > button "Next" [ > view/new layout [ > field "Name" > area "Some text" > ] > ] > ] > Press next, then close the window, then enter two lines of text and > press next again . . . notice how (on Windows95 at least) the field > and area text are scrolled. The obvious questions are why? How do I > prevent this? Is this a bug?
I'm sure it is!
> Has anyone raised this with feedback yet?
Don't know, but I think you should.
> Any and all workarounds greatly appreciated (preferably of a global > nature, having to "do [xxx]" each field / area is not really > practical).
After a bit of play, I found that a 'focus before you opened the next window seemed to clear the bug. (At least on Amiga.) Try this... view layout [ a: area 100x25 ; Note the addition of 'a for 'focus to focus on. button "Next" [ focus a unfocus view/new layout [ field head "Name" area "Some text" ] ] ] The 'unfocus is optional with regards to clearing the bug. It also seems it doesn't matter what you focus on - placing the 'a in the /new layout works just as well... lo: layout [ a: field head "Name" ; 'a here now. area "Some text" ] view layout [ area 100x25 button "Next" [ focus a unfocus view/new lo ] ] Hope this works for you too... -- Carl Read