Показать сообщение отдельно
  #2  
Старый 28.03.2012, 22:18
Аватар для cotseec
cotseec cotseec вне форума
Активный
 
Регистрация: 16.07.2008
Сообщения: 353
Версия Delphi: D7,TDE06,RAD09
Репутация: 1443
По умолчанию

ListBox1.Style:=lbOwnerDrawVariable; или какй другой OwnerDraw

Код:
procedure TForm1.ListBox1DrawItem(Control: TWinControl; Index: Integer;
  Rect: TRect; State: TOwnerDrawState);
var
  tmp:string;
begin
  tmp:=IntToStr(Index+1)+' '+ListBox1.Items.Strings[Index];
  ListBox1.Canvas.TextOut(Rect.Left,Rect.Top,tmp);
end;
Ответить с цитированием