Re: Editing the style(s) of text in a field.

2014-03-02 Thread Alex Tweedly
Thanks Peter, I hadn't remember seeing that one. While it is a useful handler, it's hard to see how to extend it to operate on chunks, because ... 1. it depends on setting the textsize of the field (to handle any characters not already within a tag). You can't do that if you're operating ju

Re: Editing the style(s) of text in a field.

2014-02-28 Thread Peter M. Brigham
On Feb 26, 2014, at 7:37 PM, Alex Tweedly wrote: > I guess the code will just have to iterate through the chars and change them. > (oops no, just tried that and it's too slow. I guess the code will need to > scan through the chars and change each sub-chunk) There was a handler posted here not

Re: Editing the style(s) of text in a field.

2014-02-26 Thread Alex Tweedly
On 26/02/2014 23:52, Peter Haworth wrote: Hi Alex, On the un-mixed example, I wonder whether you should set the textstyle to "plain" or empty? Neither I'm going to set the textStyle["bold"] to either true or false, and hence sidestep the empty vs plain question completely. For the mixed examp

Re: Editing the style(s) of text in a field.

2014-02-26 Thread Alex Tweedly
On 26/02/2014 23:31, J. Landman Gay wrote: On 2/26/14, 4:50 PM, Alex Tweedly wrote: But the question is - if the chunk is currently 'mixed', then which of the following should happen ? I've seen different ways to do that. What comes to mind is the way Thunderbird marks/unmarks a group of

Re: Editing the style(s) of text in a field.

2014-02-26 Thread Peter Haworth
Hi Alex, On the un-mixed example, I wonder whether you should set the textstyle to "plain" or empty? For the mixed examples, I'd say 4 in both cases but the problem is that won't always be what users want or expect. If it's just for your own use, that's not a problem. If it's a utility for other

Re: Editing the style(s) of text in a field.

2014-02-26 Thread J. Landman Gay
On 2/26/14, 4:50 PM, Alex Tweedly wrote: But the question is - if the chunk is currently 'mixed', then which of the following should happen ? I've seen different ways to do that. What comes to mind is the way Thunderbird marks/unmarks a group of selected messages if they have mixed status