[comp.sys.mac.programmer] Displaying New TextEdit

leonardr@uxe.cso.uiuc.edu (07/03/88)

merchant@eleazar.dartmouth.edu(Peter Merchant) in comp.sys.mac.programmer

>I'm using the new TextEdit to display a field with bold and regular
>characters.  I use TEStylNew to create the new field and I use TEStylInsert to
>insert the string of characters that I want.  I then take those characters and
>use TESetSelect to select the characters that I added and TESetStyle to set
>the style of the selected field to [Bold] by creating a record of type
>TextStyle and making the tsFace field [Bold] and then calling TESetStyle like
>so:
>
>     TESetStyle(doFace, BoldStyle, true, Transcript);
>
>What happens is that the style is changed.  I check right after I call it.
>The style is changed.
>
>Yet, when I call TEUpdate to actually display the text, it comes out as normal
>text.  No boldness at all.
>
>So what is going on that Inside Mac V isn't telling me.  From what I can see,
>I'm doing it right.  Anyone see anything blatantly obvious as to what I might
>be missing?
	Assuming you are running with System 6.0, the 'problem' is that there were
some bugs in the TESetStyle routines from previous systems and that the new 
version of TESetStyle in 6.0 does a few things differntly.  You might want to
check with MacDTS or with the 6.0 developer release notes for more detailed info.

+---------------------------------+-----------------------------------+
+                                 +  Any thing I say may be taken as  +
+   Leonard Rosenthol             +  fact, then again you might decide+
+   President, LazerWare, inc.    +  that it really isn't, so you     +
+                                 +  never know, do you??             +
+   leonardr@uxe.cso.uiuc.edu     +                                   +
+   GEnie:  MACgician             +  MacNET: MACgician                +
+   Delphi: MACgician             +                                   +
+                                 +                                   +
+---------------------------------+-----------------------------------+