How to use SrvDxSkin when TSRichViewEdit on a frame

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

How to use SrvDxSkin when TSRichViewEdit on a frame

Post by wolf1860 » Sun Feb 25, 2018 9:08 am

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: 14083
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to use SrvDxSkin when TSRichViewEdit on a frame

Post by Sergey Tkachenko » Sun Feb 25, 2018 9:26 am

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: 55
Joined: Sat Nov 21, 2015 2:04 am

Re: How to use SrvDxSkin when TSRichViewEdit on a frame

Post by wolf1860 » Sun Feb 25, 2018 12:19 pm

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: 55
Joined: Sat Nov 21, 2015 2:04 am

Re: How to use SrvDxSkin when TSRichViewEdit on a frame

Post by wolf1860 » Mon Feb 26, 2018 2:59 pm

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

Post Reply