Re: TIB: displaying a string


[Prev][Next][Index][Thread]

Re: TIB: displaying a string




> I'm trying to display a string (actually text it...) on an 86. What I want
it
> to do is take the length of the screen, and then the lebgth of the string,
and
> center the string on the screen.  How do I go about this? I have tried
> (64-(lngth STRNG))/2->CENTER....but it doesn't seem to do what I need it to
> do....any help?

You could just use the average size of a single character in pixels (4) and
multiply it by the number of characters, but this would be a rough estimation
and would not always work.