realbasic-nug
[Top] [All Lists]

Re: Storing the contents of a styled editfield...

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Storing the contents of a styled editfield...
From: Jann Gobble <janngobble@gmail.com>
Date: Tue, 30 Jun 2009 11:26:50 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=TROmT2wVjqX6CP7Mf9+0azaoKAU46nIzs8TIMRPPYQM=; b=Ea3mAg4KBsTldSuML6IW/Ltx6rfWEuNBC/PLLL6a4TRdh1cdr8xsBoBPDpJMDLNA40 QPn5UjMqipx5rd1tbBnNs05rr4zHq4F8vQcF8wm8VRmDTp7jlC0eiKPMD4Op1I/okNlf eTkv0cPZaoG6/nCOyLFrMj4MWObgfQSLQFsjw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=vps0BxcuR7EhVSYZeYleQRvQC+24BkreTIe+p2hdDS+f9t8tzs07hJ3EUelAWCL8YK YWkZfnyhQ17IA9zxhorTZY20n1fHcn+aWTX9GPMaOBktS7liEi8qou8oE08kqXuUjT3M gbYilduaBKblBURmqb9LVzo3Ak49+rLP9CJiA=
In-reply-to: <61E0597D-4987-4B6F-99DA-5CCEF0567800@xochi.com>
References: <839A347D-2C6B-474A-86E3-53B7D4F9DE96@gmail.com> <3F065AC5-0800-4C72-AE51-26205201E422@tolisgroup.com> <61E0597D-4987-4B6F-99DA-5CCEF0567800@xochi.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Great..

Gonna try this. SO, I would save the RTFData to a dictionary (or string) each time a msg is sent and received.

That way, I would simply repopulate the editfield if the window was closed -- and if the window was already open, I would skip the repopulation of the editfield and append to the editfield (the incoming or outoging text) and store the resulting editfield in the string again.

This is what i am gonna try to do.

J

On Jun 30, 2009, at 11:06 AM, Michael Diehr wrote:

Correct -- EditField.StyledText.RTFData is an string which can be stored in a text file, and this is enough data to restore an edit field to its prior state.

As long as the RTF data originates in REALbasic, I think it works ok. Problems may arise if you try to get RTF from another source, as the RTF parser in RB is limited.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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