mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 18:00:24 +02:00
LCL: Fix selected items of TComboBoxEx and TCheckComboBox not being painted with color clHighlightText.
git-svn-id: trunk@64267 -
This commit is contained in:
parent
b937fb36b5
commit
5197500844
@ -421,7 +421,7 @@ begin { do not call inherited ! }
|
||||
end;
|
||||
anyRect.Top:=(ARect.Top+ARect.Bottom-FTextHeight) div 2;
|
||||
anyRect.Bottom:=anyRect.Top+FTextHeight;
|
||||
ThemeServices.DrawText(Canvas, aDetail, ItemsEx[Index].Caption, anyRect, aFlags, 0);
|
||||
DrawText(Canvas.Handle, PChar(ItemsEx[Index].Caption), Length(ItemsEx[Index].Caption), anyRect, aFlags);
|
||||
end;
|
||||
|
||||
procedure TCustomComboBoxEx.FontChanged(Sender: TObject);
|
||||
@ -682,7 +682,7 @@ begin { do not call inherited ! }
|
||||
end;
|
||||
anyRect.Top:=(ARect.Top+ARect.Bottom-FTextHeight) div 2;
|
||||
anyRect.Bottom:=anyRect.Top+FTextHeight;
|
||||
ThemeServices.DrawText(Canvas, aDetail, Items[Index], anyRect, aFlags, 0);
|
||||
DrawText(Canvas.Handle, PChar(Items[Index]), Length(Items[Index]), anyRect, aFlags);
|
||||
end;
|
||||
|
||||
procedure TCustomCheckCombo.DropDown;
|
||||
|
Loading…
Reference in New Issue
Block a user