Page 1 of 1

Two TRichViewEdits on one form - separate actions?

Posted: Tue Sep 14, 2010 7:20 am
by GC04
I have 2 TRichViewEdits on the same form. One of them is set to ReadOnly and the other allows editing. I have basic actions set up so that the user can set Bold, Italic, Underline, and Alignment on the editable TRichViewEdit. The problem is that when I move the cursor around the ReadOnly TRichViewEdit the buttons I have controlling those actions light up based on the text style of the ReadOnly Form. I only want the buttons to reflect the editable TRichViewEdit, not the ReadOnly one. Is this possible? Thanks.

Posted: Tue Sep 14, 2010 11:16 am
by Sergey Tkachenko
Place TRVAControlPanel on the form (note: you can use only one instance of this component in application).
Assign RVAControlPanel1.DefaultControl := editable richviewedit.