Вниз
Скачать: CL | DM;

ListBox   Найти похожие ветки 

 
v_pilot ©   (2002-09-06 18:27) [0]

Необходимо в ListBox у выбранного элемента Font.Style:=[fsStrikeOut], т.е. этот самый элемент зачеркивать.


 
MBo ©   (2002-09-06 18:32) [1]

procedure TForm1.ListBox1DrawItem(Control: TWinControl; Index: Integer;
Rect: TRect; State: TOwnerDrawState);
begin
ListBox1.Canvas.FillRect(Rect);
if odSelected in State then
ListBox1.Canvas.Font.Style:=ListBox1.Canvas.Font.Style+[fsStrikeOut];
ListBox1.Canvas.TextOut(Rect.Left+1,Rect.Top+1,ListBox1.Items[Index]);
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.008 c
1-61116
maxim2
2002-09-10 09:23
2002.09.19
Как получить список всех шрифтов в системе


1-61153
Вован
2002-09-06 19:08
2002.09.19
Отображение информации на StatusBar е


4-61346
Mr. JS
2002-07-27 13:20
2002.09.19
TreeView?


1-61072
Шурик Ш
2002-09-09 15:34
2002.09.19
Редактирование TreeView


1-61086
Shrek
2002-09-09 19:55
2002.09.19
SendMessage




   Наверх