Hi All,
I'm using a protect text style to insert mail merge fields into a TRichViewEdit.
The following code works perfectly...
LetterRichViewEdit->CurTextStyleNo = 1; //TextStyle modify protected
LetterRichViewEdit->InsertStringTag(myField, myField);
Now using manual code to apply say BOLD...
TSpeedButton*Button = (TSpeedButton*)Sender;
LetterRichViewEdit->ApplyStyleConversion(Button->Tag);
If I there is normal text either side of the protected field and I select the text and the protected text and then apply BOLD to it, the protected field changes to bold also ("perfect" that's what I want)
But then if I try using an ActionList to apply BOLD in the same way, the BOLD is only applied to the normal text either side and NOT to the protected field.
Since I want to use ActionList as its far quicker and easier, then how can I allow the protect field to also have its style changed (i.e bold, italic, underline, colours etc).
I can do this using manual code, but maybe there's a way for ActionList to get around this.
I did trying playing with the MailField Text Style Protection properties, but it didn't seem to make a difference.
As you can imagine, when a person is editing their mailmerge document, they want to be able to apply styles to all text including protected mail fields, so if I can do that using ActionList and some settings in the style protection properties then perfect, but does anyone know?
Thanks
Allow Protected text to have its style changed.
Worked it out...
I found that I did have the correct protection options setup, but I had the styles being loaded in from the TDBRichView and overwritting my changes to the Styles protection...
So all working now.
So all working now.