Mejor respuesta Ricard , 23 marzo 2019 - 06:09
Buenas , aqui dejo el codigo:
procedure TFVistames.ListBox2DrawItem(Control: TWinControl; Index: Integer; ARect: TRect; State: TOwnerDrawState); var color1 : TColor; begin color1:=fdatamodul1.QActivitatsColorActivitat.AsInteger; with (Control as TListBox).Canvas do begin FillRect(ARect); color1 := TColor((Control as TListBox).Items.Objects[Index]); font.Color:= color1; TextOut(ARect.Left, ARect.Top, (Control as TListBox).Items[Index]); end; end;
Ir al mensaje completo