[squeakland] Label centering

Bert Freudenberg bert at freudenbergs.de
Mon Aug 23 09:08:58 EDT 2010


On 23.08.2010, at 14:48, Steve Thomas wrote:

> On Mon, Aug 23, 2010 at 7:57 AM, Alan Kay <alan.nemo at yahoo.com> wrote:
>> I think I'm not understanding your graphing example. It is "pretty easy" to position text objects containing numbers (you can adjust the centers of any object and the x and y coordinates can have some arithmetic done to them with results put in the numeric value). Please give me more info here.
> 
> The problem seems to be only with centering 1 character text. To recreate, draw a vertical line, create a text object "1" and set both to the the same X value.  Two or more characters align and are not an issue.

If you make the Text a bit wider, it works (provided you enabled centering in the text).

- Bert -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CenterLabel-bf.001.pr
Type: application/x-squeak-project
Size: 67507 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20100823/0af32ac5/attachment-0001.bin>


More information about the squeakland mailing list