失去焦点的时候模拟选中状态

  if Item.Selected and not Focused then
  begin
    Canvas.Font.Color := clHighlightText;
    Canvas.Brush.Color := clHighlight;
  end;

猜你喜欢

转载自blog.csdn.net/qq_43466604/article/details/83652174