Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!mcnc!ecsvax!dlugose From: dlugose@ecsvax.uncecs.edu (Dan Dlugose) Newsgroups: comp.sys.mac.hypercard Subject: Re: Effect of setting text tool properties Message-ID: <7628@ecsvax.uncecs.edu> Date: 4 Sep 89 17:59:46 GMT References: <37513@bu-cs.BU.EDU> Reply-To: dlugose@ecsvax.uncecs.edu.UUCP (Dan Dlugose) Organization: UNC Educational Computing Service Lines: 26 In article <37513@bu-cs.BU.EDU> gasp@bucsd.bu.edu (Isaac Kohane) writes: > the following behavior in Hypercard has me puzzled. If you have a >script which goes as follows: > > lock screen > choose text tool > set textAlign to center > type "Foo" > . > set textAlign to right > type "Bar" > unlock screen > >then both Foo and Bar end up right aligned. A similar phenomenon happens This behavior is as it would be in MacPaint. When using the text tool, you can't mix text characteristics within the same string being painted on the screen. To mix text characteristics, you have to click the text cursor in a different place, such as to the right of where your first set of text ends. Just add "click at x,y" between the two strings which are to have different characteristics. Of course, figuring out exactly where you want to click is a bit difficult. Dan Dlugose UNC Educational Computing Service