TextMorph code - help!

John Hinsley jhinsley at telinco.co.uk
Fri Dec 21 22:04:58 UTC 2001


Gary McGovern wrote:
> 
> Thanks lads,
> It was the extent I needed. Though the argument could be smaller.
> 
> book := BookMorph new.
> text := TextMorph new.
> text string: 'Hello There !' fontName: 'ComicBold' size: 24.
> text extent: 200 at 200.
> text visible.
> book currentPage addMorph: text.
> book openInWorld.
> 

I just wondered if you'd worked out a way to pop it up in italic? I
started playing with it last night (should have gone to bed, I was
winning up till then) and just couldn't crack it. (I've a Squeaking
suspicion that I'm missing something very obvious.) But that addition
would provide a working example of just about all the protocols anyone
is likely to need from a text morph.

Cheers

John
-- 
Reputed to be the reason Windows 2000 was nearly a year late, (paid in
shares M$Ds needed the cash and kudos) Netproject's Eddie Bleasdale has
renewed his challenge to virus writers. The first person to infect his
Linux box wins 10,000 pounds.

http://www.silicon.com/bin/bladerunner?30REQEVENT=&REQAUTH=21046&14001REQSUB=REQINT1=48211




More information about the Squeak-dev mailing list