[futurebasic] Re: [FB] Text Columns

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: "David Blache" <alterego@...>
Date: Wed, 06 Oct 1999 09:36:10 -0500
> I see you mention setting a monospaced font prior to saving without
> success. Do you mean in FB??? If so, that won't help you any. When you
> open the document in Simpletext, no font information will be there if
> you are opening a text file. You would have to change the font to a mono
> font within simpletext after opening your document.

What you need to do is write the style information (font, size, style, etc.)
to a "styl" resource along with the data fork when you save the file in your
program.  That way SimpleText will use the style information.  FBII has a
way to grab a ZText handle from an edit field.  Look up ZText in your
documentation (or is it ZTXT...one of the two).

HTH

|-------------------------------------------------------------|
| David Blache          Software Developer / Technical Writer |
|-------------------------------------------------------------|
| Microcosm Software    http://www.thesanctuary.com/microcosm |
| Metrowerks                        http://www.metrowerks.com |
|-------------------------------------------------------------|