gasp@bu-cs.BU.EDU (Isaac Kohane) (09/04/89)
Hi, 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 when you set to differerent font sizes and other properties of the text tool from within a script. Any explanations? thanks- -Zak
shani@TAURUS.BITNET (09/06/89)
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.