Re: Custom "text" objects
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Tue, 27 Jan 2009 13:52:10 -0600
Ryan Dary wrote:
> I'm working on embedding some "text" objects, very similar to the
> Custom
> Hyperlink, however I would like the custom object to be updated when
> the
> user changes the font and style information on a given range of text
> (text and my custom objects combined in a single selection). How
> can my
> custom object know when it is supposed to adjust its font, size,
> height,
> color, etc.?
I believe you will need to override the changeXXXX methods (like
changeStyle) in FTObject. See the FTStyleRun class for an example
of how to do this.
FTC Website:
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
Other related posts: