How to use SrvDxSkin when TSRichViewEdit on a frame

General TRichView support forum. Please post your questions here
Post Reply
wolf1860
Posts: 118
Joined: Sat Nov 21, 2015 2:04 am

How to use SrvDxSkin when TSRichViewEdit on a frame

Post by wolf1860 »

My TdxSkinController and TSrvDxSkinAdapter are placed on TDataModule, the TSRichViewEdit are placed on a frame which has a parent class,How to make the TSrvDxSkinAdapter work?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to use SrvDxSkin when TSRichViewEdit on a frame

Post by Sergey Tkachenko »

In the current version, TSRVDxSkinAdapter applies itself to all controls having the same owner.
When it is placed in a form, it applies itself to all controls on the same form.

So it does not make sense to place it in a data module. Try placing it on a form. If it does not help, place it in the same frame.
wolf1860
Posts: 118
Joined: Sat Nov 21, 2015 2:04 am

Re: How to use SrvDxSkin when TSRichViewEdit on a frame

Post by wolf1860 »

when I try to add TSRVDxSkinAdapter to my frame,IDE raise exception "Access vilation XXX", but It works fine when I create a new project with 1 simple frame.How should I do?
wolf1860
Posts: 118
Joined: Sat Nov 21, 2015 2:04 am

Re: How to use SrvDxSkin when TSRichViewEdit on a frame

Post by wolf1860 »

Finally,I copied some functions from src file and create a new class unit,it worked fine:)
thank u!
Post Reply