i am trying to change the selection color of a DBDateTimePicker and when you use google you find lost of stuff.
also this
procedure TForm1.DBDateTimePicker1DrawItem(Sender: TObject; Index: Integer; Rect: TRect; State: TOwnerDrawState);
begin
if odSelected in State then
begin
// Set the selection color
DBDateTimePicker1.Canvas.Brush.Color := clRed; // Change to your desired color
DBDateTimePicker1.Canvas.FillRect(Rect);
end;
// Draw the text
DBDateTimePicker1.Canvas.TextOut(Rect.Left, Rect.Top, DBDateTimePicker1.Items[Index]);
end;
But the DBDateTimePicker in the trunk version hasn't got any DrawItem.
So how can i change the selection color?
P.s. this is for Windows not for MacOSx and i am using Lazarus 3.99 (rev 85f227d16f) FPC 3.3.1 x86_64-win64-win32/win64