Area bug?
[1/5] from: atruter:hih:au at: 5-Sep-2002 16:49
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? Has anyone raised this with feedback yet?
Any and all workarounds greatly appreciated (preferably of a global nature,
having to "do [xxx]" each field / area is not really practical).
Regards,
Ashley
*****************Privacy, Confidentiality & Liability Notice ************
This email is intended for the named recipient only. The information
contained in this message may be confidential, or commercially sensitive.
If you are not the intended recipient you must not reproduce or distribute
any part of this email, disclose its contents to any other party, or take
any action in reliance on it. If you have received this email in error,
please contact the sender immediately. Please delete this message from
your computer.
You must scan this email and any attached files for viruses.
The company accepts no liability for any loss, damage or consequence,
whether caused by our own negligence or not, resulting directly or
indirectly from the use of any attached files.
Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
the Company.
**************************************************************************
[2/5] 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:
<<quoted lines omitted: 11>>
> 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
[3/5] from: rotenca:telvia:it at: 5-Sep-2002 12:23
Hi,
> are scrolled. The obvious questions are why? How do I prevent this? Is this
> a bug? Has anyone raised this with feedback yet?
>
> Any and all workarounds greatly appreciated (preferably of a global nature,
> having to "do [xxx]" each field / area is not really practical).
it is not a bug, is a (strange) feature. The para object, which keeps scroll
info, is shared by faces.
A simple:
x: field para []
clones the para object.
A more global solution:
my-styles: stilize [area: area para [] field: field para []]
view layout [
styles my-styles
field ""
area ""
]
---
Ciao
Romano
[4/5] from: g:santilli:tiscalinet:it at: 5-Sep-2002 12:39
Hi Ashley,
On Thursday, September 5, 2002, 8:49:13 AM, you wrote:
ahca> Any and all workarounds greatly appreciated (preferably of a global nature,
ahca> having to "do [xxx]" each field / area is not really practical).
stylize/master [
Area: Area with [append init [para: make para []]]
Field: Field with [append init [para: make para []]]
]
This is global, and should solve your problem. It will just use a
bit more memory.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[5/5] from: atruter::hih::com::au at: 6-Sep-2002 10:16
Thanks Carl, Romano and Gabriele, I can sleep easier now. ;)
Regards,
Ashley
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted