Re: FTCustom Object Question
- From: Bob Keeney <bobk@xxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Fri, 30 May 2008 11:19:26 -0500
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.
- Follow-Ups:
- Re: FTCustom Object Question
- From: Brendan Murphy
- References:
- FTCustom Object Question
- From: Bob Keeney
- Re: FTCustom Object Question
- From: Brendan Murphy
Other related posts:
- » FTCustom Object Question
- » Re: FTCustom Object Question
- » Re: FTCustom Object Question
- » Re: FTCustom Object Question
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?
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.
- Re: FTCustom Object Question
- From: Brendan Murphy
- FTCustom Object Question
- From: Bob Keeney
- Re: FTCustom Object Question
- From: Brendan Murphy