Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.11.25;
Скачать: CL | DM;

Вниз

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

 
Washington ©   (2007-10-30 15:02) [0]

Как сделать, чтобы при щелчке на ListBox"e шрифт выделенного элемента менялся?


 
Джо ©   (2007-10-30 15:18) [1]

Style := lbOwnerDrawFixed

И в обработчике OnDrawItem:

begin
 with TListBox(Control).Canvas do
 begin
   if odSelected in State then
   begin
     Brush.Color := clActiveCaption;
     Font.Color := clHighlightText;
     Font.Name := "Arial"
   end
   else
   begin
     Brush.Color := clWindow;
     Font.Color := clWindowText;
     Font.Name := "Times New Roman"      
   end;
   ListBox1.Canvas. FillRect (Rect);

   TextOut(Rect.Left,Rect.Top,TListBox(Control).Items[Index]);
 end;
end;



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

Текущий архив: 2007.11.25;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.021 c
2-1193745723
Washington
2007-10-30 15:02
2007.11.25
Шрифт в ListBox е


15-1193152531
Petr V.Abramov
2007-10-23 19:15
2007.11.25
Стрим vs Wifi


15-1193149253
xayam
2007-10-23 18:20
2007.11.25
подскажите бесплатный php-хостинг


2-1193907869
barakuda
2007-11-01 12:04
2007.11.25
Генератор случайных чисел...


15-1193044810
@Ujin
2007-10-22 13:20
2007.11.25
imgedit.exe - где он? А чем теперь делать ресурсы dcr ???