var
c: TDateTimePicker;
begin
c := TFwkDatePicker.Create(nil);
c.Parent := DBSRichViewEdit1.ActiveEditor;
c.Name := 'DatePicker';
c.Kind := dtkDate;
DBSRichViewEdit1.ActiveEditor.InsertControl('teste', c, rvvaAbsMiddle);
end;
But the TDateTimePicker does not work correctly. When I clicked on the calendar button the window to select a date appears somewhere, but not below TDateTimePicker as expected.
Unfortunately, it cannot be fixed. Controls are not really placed in positions where you see them, so they cannot display popup windows correctly.
We created TSRVComboBox control to solve this problem for combo boxes. Probably, in future, we will create TDateTimePicker analog too.