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 J. Strout" <joe at realsoftware dot com>
Date: Mon, 28 Feb 2005 14:40:56 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050228203142 dot B6C737693E5 at lists dot realsoftware dot com>
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>

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