smalltalk1 <
[hidden email]> wrote in message
news:90r8ck$21jk0$
[hidden email]...
> I create a TextEdit view and a StaticText view. My problem is this:
> I want to set the width in function of the text width.
> My font has a pixelSize of 15.
> My Text is 9 characters long.
If you are using a proportional font all characters are not the same size.
I use Canvas<<textExtent: to get the width of a string relative to the
current font.
Chris