Should scanner like tabs?
Stewart MacLean
stingray at paradise.net.nz
Wed Apr 26 12:37:17 UTC 2000
Hi All,
As I'm putting the finial touches to my TextOrganizer (to be published shortly) I noticed that if I have an item with a leading tab noting gets displayed. (it uses the IndentingListItem of the ObjectExplorer).
Upon investigation I discovered that the scanner used returns a size of zero if there is a leading tab.
For example:
| scanner |
scanner _ QuickPrint newOn: Display box: Display boundingBox font: TextStyle defaultFont.
scanner stringWidth: ' test'. 0
scanner stringWidth: 'test'. 19
scanner stringWidth: 'a test'. 7
Is this the expected behaviour or bug?
Cheers,
Stewart (who's returned from Paradise after working out how to get his name displayed!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 1565 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000427/0a3b11c9/attachment.bin
More information about the Squeak-dev
mailing list
|