![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Выделение в listbox [D7, Win95/98, WinXP]
alexa © (2004-06-14 14:15:00)Как в lisbox можно выделить items правой клавишей мыши?
Palladin (2004-06-14 14:21:00) [1]
procedure TForm1.ListBox1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
i:integer;
begin
i:=ListBox1.ItemAtPos(Point(x,y),false);
if i<>-1 then ListBox1.ItemIndex:=i;
end;