Xref: utzoo comp.sys.mac.hypercard:2427 comp.sys.mac.programmer:8848 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!TAURUS.BITNET!shani From: shani@TAURUS.BITNET Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer Subject: Re: Effect of setting text tool properties Summary: Reselect the tool Message-ID: <1099@taurus.BITNET> Date: 6 Sep 89 06:53:49 GMT References: <37513@bu-cs.BU.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: Organization: Tel-Aviv Univesity Math and CS school, Israel Lines: 25 In article <37513@bu-cs.BU.EDU>, gasp@bu-cs.BU.EDU (Isaac Kohane) writes: > the following behavior in Hypercard has me puzzled. >... > set textAlign to center > type "Foo" >.... > set textAlign to right > type "Bar" >.... > > then both Foo and Bar end up right aligned. This is exactly as if you choose the text tool from the toolbox and then changing text style without rechoosing the text tool, because text style reguards the whole of the text entered since the text tool was selected (same thing will happen in MacPaint, for instance...), so all you have to do is to add the line choose text tool into your script, before the set textAlign to right O.S.