realbasic-nug
[Top] [All Lists]

Re: ALIGNMENT SAVING PROBLEM

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: ALIGNMENT SAVING PROBLEM
From: Frank Bitterlich <bitterlich at gsco dot de>
Date: Fri, 30 Aug 2002 15:08:47 +0200
You need to save the text not as plain text but as styled text. Use
FolderItem.SaveStyledEditField. Or access the EditField.TextStyleData property.

Cheers,
   Frank+++

Saad Abbasi wrote:
> 
> How the HELL can I save alignment information in a document.
> I've tried this:
> 
> Dim i as Integer
> Dim f as Folderitem
> Dim b as Binarystream
> 
> f=GetSaveFolderItem("text/plain")
> b=f.CreateBinaryFile("text/plain")
> For i=1 to Len(EditField1.Text)
> EditField1.SelStart=i
> b.WriteLong EditField1.Selalignment
> Next
> 
> The above method works perfectly but its slow as hell. Can
> anyone please provide a more efficient routine for saving
> alignment information in a file.


--
Günter Schmidt & Co. oHG         
Frank Bitterlich             eMail: bitterlich at gsco dot de
Schlosserstr. 2-4            WWW:   http://www.gsco.de/gsco
D-60322 Frankfurt            Tel.:  069 / 156809-29
GERMANY                      Fax:   069 / 156809-28


<Prev in Thread] Current Thread [Next in Thread>