TDateTimePicker in ScaleRichView does not work correctly

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
Kverde
Posts: 53
Joined: Wed Dec 25, 2013 3:02 am

TDateTimePicker in ScaleRichView does not work correctly

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply