Re: FTCustom Object Question


On May 30, 2008, at 10:56 AM, Brendan Murphy wrote:
My guess from your description is that the user selects a range of
text and custom objects and then they invoke functionality to
change an attribute on the selection and you want this to be
propagated to the custom objects? Am I close?


Yup.  That nailed it.

If what I said matches what you are thinking, you can get the
selection range and search the selection for custom objects of the
type you are looking for and call a method on that object to
update its data and then mark the paragraph as dirty and then
call update.

Will this mean that I'll have to subclass the FormattedText control to override the existing functionality or is there some pre-existing hook for this?

Thanks,
Bob K.

FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.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: