strange problem,the rvstyle font is automatically changed
-
- Posts: 12
- Joined: Fri Dec 14, 2007 5:46 am
strange problem,the rvstyle font is automatically changed
My richview's version is 1.9.46.In the Rvstyle of richvewedit and richview,I set the font to unicode: "rvs_Comm.TextStyles.Unicode := True;".Then,I set the fontname to "Tahoma". At first,the richvew and richviewedit are ok.But after running the pragramme at several times , the font's name becomes the 'Arial Unicode MS'. I want to know ,how to avoid the problem.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 42
- Joined: Wed Feb 28, 2007 4:14 am
Re: strange problem,the rvstyle font is automatically change
li_nummereins wrote:My richview's version is 1.9.46.In the Rvstyle of richvewedit and richview,I set the font to unicode: "rvs_Comm.TextStyles.Unicode := True;".Then,I set the fontname to "Tahoma". At first,the richvew and richviewedit are ok.But after running the pragramme at several times , the font's name becomes the 'Arial Unicode MS'. I want to know ,how to avoid the problem.
Maybe you're using font action update, which combines with other function, which modifies font name (I've got this error approximatelly one year ago - when I started my work with RV).
Try to check your font update functions - mainly routines, which parse selections
-
- Posts: 12
- Joined: Fri Dec 14, 2007 5:46 am
Michael Pro, thank you very much. I checked my program again and found that there is a sentence --"rvActionsResource.rvActionNew1.ExecuteTarget(RichViewEdit1);" in the FormCreate procedure of the RVEdition form. So, the cmbFont(TRVFontComboBox) was always in edited-state. After I removed the sentence , the error doesn't appear again.