Bob Keeney wrote:
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?
I am not sure what attribute you are looking to implement, so I'll call it "xxx". From your description xxx is not supported by the FTC, so you need to implement this yourself and therefore it only applies to content of your custom object. The algorithm I described before will do the job. Let's say you have a button that applies the attribute, then in that button you would do what I described. Don't forget to set up the undo for the custom object if that functionality is desired. If you are looking to apply it "to all the text" in the in the selection, that is a different story and will require messing with the guts of the FTC (thus creating a subclass in your case). An example of this would be implementing full justification on a paragraph. Such a change needs to be made in the FTC itself which would be my job. Style run based attribute changes require a lot of changes throughout the code to properly support them and is not something I would advise you to do. Follow the strikethrough attribute and you will see what is required. There are no hooks in the code for what you want to do. So the question is do you want to apply this just to the custom objects within a selection or the entire selection (i.e., all the style runs)? 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.