Page 1 of 1

TDateTimePicker in ScaleRichView does not work correctly

Posted: Wed Jan 29, 2014 11:27 am
by Kverde
I used this code to insert a TDateTimePicker control into the ScaleRichView

Code: Select all

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.

Posted: Wed Jan 29, 2014 1:40 pm
by Sergey Tkachenko
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.