Mailmerge-freestyle Example

General TRichView support forum. Please post your questions here
Post Reply
PioPio
Posts: 41
Joined: Mon Feb 18, 2013 4:21 pm

Mailmerge-freestyle Example

Post by PioPio »

Hello Sergey,

I have downloaded your example "mailmerge-freestyle" and added one button and a TActionManager. I assigned the following properties:

Code: Select all

  object Button3: TButton
    Left = 547
    Top = 10
    Width = 75
    Height = 25
    Action = rvActionFontBold
    TabOrder = 2
  end

    object ActionManager1: TActionManager
    Left = 336
    Top = 224
    StyleName = 'Platform Default'
    object rvActionFontBold: TrvActionFontBold
      Category = 'RVE Text'
      Caption = '&Bold'
      ImageIndex = 14
      ShortCut = 16450
    end
  end


I compiled and ran the example. I added a new sentence in TRichViewEdit and added a tag "code" in the middle of it by pressing "Insert Customer Code".
Finally I selected the whole line I inserted and clicked on Button3. The line was converted in Bold except the tag.

How can I solve this ?

Many thanks
PioPio
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Remove rvprStyleProtect from the Protection of the field style.
(see TForm1.GetFieldStyleNo in TEMainFrm)
PioPio
Posts: 41
Joined: Mon Feb 18, 2013 4:21 pm

Post by PioPio »

Sergey Tkachenko wrote:Remove rvprStyleProtect from the Protection of the field style.
(see TForm1.GetFieldStyleNo in TEMainFrm)
Thank you, Sergey,

I was thinking if there are any side effects in doing so.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

There must not be side effects.
All text style operations in TRichViewEdit and RichViewActions create new styles basing on existing styles, so other protection properties will be retained.
Post Reply