Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
procedure changeColor(Control : TWinControl; Rect: TRect; Index: Integer);
begin
if Index = 2 then begin
with (Control as TComboBox) do begin
Canvas.Font.Color := clRed;
Canvas.textOut(Rect.Left,Rect.Top,Items[Index]);
end;
end;
end;
procedure TForm1.ComboBox1DrawItem(Control: TWinControl; Index: Integer;
Rect: TRect; State: TOwnerDrawState);
begin
changecolor(Control, Rect, Index);
end;