Page 1 of 1

Register Controls of Third Party

Posted: Wed Jan 30, 2008 8:14 am
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

Posted: Wed Jan 30, 2008 5:41 pm
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