Ver Mensaje Individual
  #2  
Antiguo 25-02-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 20
cHackAll Va por buen camino
Código Delphi [-]
procedure TForm1.ListBox1DrawItem(Control: TWinControl; Index: Integer; Rect: TRect; State: TOwnerDrawState);
const Colors: array [Boolean] of Cardinal = (clWhite, clSilver);
begin
 with (Control as TListBox).Canvas do
  begin
   Brush.Color := Colors[odSelected in State]; FillRect(Rect);
   TextOut(4, Rect.Top, (Control as TListBox).Items[Index]);
  end;
end;

// Style = lbOwnerDrawFixed
Responder Con Cita