realbasic-nug
[Top] [All Lists]

Re: object=object

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: object=object
From: Charles Yeomans <yeomans at desuetude dot com>
Date: Mon, 28 Feb 2005 16:21:54 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050228203142 dot B6C737693E5 at lists dot realsoftware dot com>

On Feb 28, 2005, at 3:30 PM, Joseph Claeys wrote:

Is it possible for an entire object to obtain all the properties and
features of another object?  So lets say I have an editfield with a
particular text string that has a particular styledtext. I now from recent
experience that I can't do this:

editfield1=editfield2

And expect the editfield1 to essentially take all the properties of
editfield2. Pity. So am I left with individually 'moving' each property that I want? 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...


For Mac builds, it would be EditField2.SetTextAndStyle EditField1.Text, EditField1.TextStyleData.

Charles Yeomans

_______________________________________________
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>