Register Controls of Third Party

General TRichView support forum. Please post your questions here
Post Reply
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Register Controls of Third Party

Post by BernhardRoos »

I'm trying to use a TDateEdit Control (from rxlib) to use with RichViewEdit. I've registered this control in the initialization section of the unit (from my Editor) : RegisterClass(TDateEdit).

I can set this control in the RichViewEdit but if I Load the RichView again the control is gone.

What is exactly to do that RichViewEdit saves this control in the RichView document?

Best wishes
Bernhard
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TDateEdit contains 2 subcontrols: TEditButton and TPopupCalendar.
All of them must be registered with RegisterClasses.
There is no problem for TEditButton, but TPopupCalendar is defined in the implementation section of PickDate unit, so you need to change RXLib source code. The most simple way is adding

Code: Select all

initialization
  RegisterClass(TPopupCalendar);
in PickDate.pas
Post Reply