richviewactions, TRichView

General TRichView support forum. Please post your questions here
Post Reply
tors
Posts: 6
Joined: Thu Jan 31, 2008 7:13 am

richviewactions, TRichView

Post by tors »

I am download subj.
How too TRVFontComboBox associate with RichViewEdit?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

First, turn of autocompletion:
cmbFont.AutoComplete := False;

In RichViewEdit1.OnCurTextStyleChanged, assign the current text style to cmbFont.Text.
In cmbFont.OnClick, apply the chosen font (using rvActionFontEx).

You can see how it is implemented in the ActionTest demo.
Post Reply