realbasic-nug
[Top] [All Lists]

RE: object=object

To: "'REALbasic NUG'" <realbasic-nug at lists dot realsoftware dot com>
Subject: RE: object=object
From: "Joseph Claeys" <techmail at psychjoe dot com>
Date: Mon, 28 Feb 2005 14:54:14 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Organization: Psychjoe
Thread-index: AcUd1j37omvZMqukQyGqFLN59AhIJgAABZTg
Nope.  You're not confused.  I am!  ;-)

I think I'm getting it though.  So lets say I'm getting text from an rtf and
I've created my own tags that I'm parsing.  Some tags replace fields with
values, some tags indicate "code" that I'm sending to a custom RBScript
class.  I had everything working just fine with a textinput class but wanted
to obtain (and maintain) the textstyle so I decided on an rtf file.  Well
then, now I have to deal with an editfield instead of a string (as per a
previous thread).  

Anyway, I'm still plugging away.  You've given me some ideas on how to
proceed.  Maybe I'm just making this too difficult (I overloaded my parse
class to accept an editfield as well as a string, and then return the
editfield that was regex'ed, parsed, and run through my RBScript).  Maybe
I'll just steal some properties from it instead...

For what it's worth the original was pretty slick - I'm just hung up on this
style issue.  You are correct however...  I don't really want the "left",
"top", etc nonsense.  I was just looking for that (ever elusive) shortcut.  

Time to do some pondering with a old-fashion sheet of notebook paper...

~joe 

-----Original Message-----
From: realbasic-nug-bounces at lists dot realsoftware dot com
[mailto:realbasic-nug-bounces at lists dot realsoftware dot com] On Behalf Of 
Joseph J.
Strout
Sent: Monday, February 28, 2005 2:41 PM
To: REALbasic NUG
Subject: Re: object=object

At 2:30 PM -0600 2/28/05, Joseph Claeys wrote:

>Is it possible for an entire object to obtain all the properties and 
>features of another object?

Yes, if you write code that does that...  Otherwise, no.

>So am I left with individually 'moving' each property that I want?

Yes.

>   I'm not real familiar with styled text (the genesis of "why" I want 
>to do this). I I'm just looking for the easiest path to moving it from 
>one editfield to another without loosing the style...

Well, I'm confused about whether you want to copy the EditField properties
(like Left, Top, ReadOnly, etc.), or the styled text contents.  In the
latter case, you can just do EditField2.StyledText = EditField1.StyledText.
In the former case, you'd have to copy each property individually.

Best,
- Joe

--
REAL World 2005 - The REALbasic User Conference March 23-25, 2005, Austin,
Texas <http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

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