Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

ListBox [D6]


Sewix ©   (2002-04-28 15:05:00) 

Делаю ListBox1.MultiSelect:=true;
Как узнать содержание выделенных строк.


Song   (2002-04-28 15:19:00) [1]

With ListBox1 Do
For t:=0 to Items.Count-1 Do
IF Selected[t] then Memo1.Lines.Add(Items[t]);


Anatoly Podgoretsky   (2002-04-28 15:16:00) [2]

Selected, Items


Vovchik   (2002-04-28 15:15:00) [3]

TCustomListBox.Selected

Indicates whether a particular item is selected.

property Selected[Index: Integer]: Boolean;

Description

Use Selected to query the state of a particular item in the list box. If the item specified by the Index parameter is selected in the list box, the value of the Selected property is True. If the specified item is not selected, Selected is False.

The Index parameter is the item referenced by its position in the list box, with the first item having an Index value of 0.

An item is selected when the user highlights it. More than one item in the list box can be selected by setting the MultiSelect property to True. In this case, the Selected item is the one that has focus.


Наверх

Титульная страница Поиск, карта сайта Написать письмо