Легенда:
новое сообщение
закрытая нитка
новое сообщение
в закрытой нитке
старое сообщение
|
- Напоминаю, что масса вопросов по функционированию форума снимается после прочтения его описания.
- Новичкам также крайне полезно ознакомиться с данным документом.
| |
Канюшня. И не только. Есть даже Selected. 16.10.03 22:41 Число просмотров: 1350
Автор: Fighter <Vladimir> Статус: Elderman Отредактировано 16.10.03 22:56 Количество правок: 1
|
И:
__property bool Selected[int Index] = {read=GetSelected, write
=SetSelected};
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. Set Selected to change the currently selected item.
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 when the list box has input focus.
From help, однако!
|
<programming>
|
[C++] TListBox - не пойму как получить выделеный элемент... 16.10.03 01:20 [ZloyShaman]
Автор: CrazyPitbull Статус: Незарегистрированный пользователь
|
В Билдере юзаю TListBox, вгоняю в него кучу строк и т.п. затем щёлкаю на некоторую строчку мышкой, она выделяется (синим по умолчанию). Проблемма заключается в том, что не получить номер выделеной строки. Я перепробовал все члены класса ничего. Всё, что нашёл, так это как получить номер строки содержащей заданные символы. Если кто сталкивался с TListBox поделитесь опытом. Думаю там всё просто, я тормажу....
|
|
[C++] TListBox - не пойму как получить выделеный элемент... 17.10.03 17:36
Автор: busmatch Статус: Незарегистрированный пользователь
|
Я сам так столкнулся, была другая версия, и бац нету, глазам не поверил, по хелпу тоже нет, но прописал по памяти и съела. Если бы не видел не поверил.
|
|
[C++] Help читать не пробовал? Советую это делать сперва ;-) 16.10.03 09:26
Автор: HandleX <Александр М.> Статус: The Elderman
|
> В Билдере юзаю TListBox, вгоняю в него кучу строк и т.п. > затем щёлкаю на некоторую строчку мышкой, она выделяется > (синим по умолчанию). Проблемма заключается в том, что не > получить номер выделеной строки. Я перепробовал все члены > класса ничего. Всё, что нашёл, так это как получить номер > строки содержащей заданные символы. Если кто сталкивался с > TListBox поделитесь опытом. Думаю там всё просто, я > тормажу.... Цитирую из Help'a борландовского:
C++ syntax:
__property int ItemIndex = {read=GetItemIndex, write=SetItemIndex, nodefault};
Description
Use ItemIndex to select an item at runtime. Set the value of ItemIndex to the index of the item to be selected. The ItemIndex of the first item in the list box is 0. If no item is selected, the value is -1, which is the default value unless MultiSelect is true.
If the value of the MultiSelect property is true the user can select more than one item in the list box. In this case, the ItemIndex value is the index of the selected item that has focus. If MultiSelect is true, ItemIndex defaults to 0.
|
| |
[C++] Help читать не пробовал? Советую это делать сперва ;-) 16.10.03 16:22
Автор: CrazyPitbull Статус: Незарегистрированный пользователь
|
Хелп читал, только этой инфрмации не нашёл... Спасибо.
|
|
А есть у него св-во ItemIndex? 16.10.03 09:23
Автор: ZloyShaman <ZloyShaman> Статус: Elderman
|
|
| |
Канюшня. И не только. Есть даже Selected. 16.10.03 22:41
Автор: Fighter <Vladimir> Статус: Elderman Отредактировано 16.10.03 22:56 Количество правок: 1
|
И:
__property bool Selected[int Index] = {read=GetSelected, write
=SetSelected};
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. Set Selected to change the currently selected item.
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 when the list box has input focus.
From help, однако!
|
|
|