[ALLY] Re: Edge appears to hide last character.
[1/2] from: gjones05:mail:orion at: 20-Apr-2001 12:13
From: "Brett Handley"
> Is this a bug?
>
> view layout [ style text text edge [size: 1x1 color: black] text "12" ]
>From my perspective, in terms of *my* ease of use, I would say it is. But I
really think it is more of a feature in the scheme of feature trade-offs in
terms of consistency and speed versus ease of use.
This "problem" is similar to the one of changing the default text data to a
longer string, and the end of the text not showing up, demonstrated as
follows:
view layout [
t1: text "Hello"
button "change text" [
t1/text: "how are you?"
show t1
]
]
I've "gotten used" to preallocating enough size inorder to accommodate the
longest text, instead of bothering to figure out how to program the text to
resize itself (kind of like resizing the text-list slider) dynamically.
Since the behavior is consistently expressed in a number of areas, it is
probably not a "bug", meaning an unintended outcome. But it is an ease of
use issue, in my opinion. I hope I stated that delicately enough.
I have been meaning to get into the code to figure out how to find out how
long and wide text will be in a given font and font size. As in most things
REBOL, there probably is a fairly easy way without resorting to a hidden
field, but I've not bothered myself with it yet. Anyone else?
For what its worth...
--Scott Jones
[2/2] from: brett::codeconscious::com at: 21-Apr-2001 2:27
Is this a bug?
view layout [ style text text edge [size: 1x1 color: black] text "12" ]
Thanks,
Brett.
---
http://www.codeconscious.com