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

как в list view программно чекбоксы включать и выключать?   Найти похожие ветки 

← →
Виталий*   (2007-02-11 18:49) [0]

Всем привет!
Поставил Listview с lvkCheckBoxes.
А как в list view программно чекбоксы включать и выключать то?


← →
Psychedelic ©   (2007-02-11 19:09) [1]

property LVItemStateImgIdx[ Idx: Integer ]: Integer read LVGetSttImgIdx write LVSetSttImgIdx;
   
      Access to state image of the item. Use index -1 to assign the same state
      image index to all items of the list view at once (fast).
      Option lvoCheckBoxes just means, that control itself creates special inner
      image list for two state images. Later it is possible to examine checked
      state for items or set checked state programmatically by changing
      LVItemStateImgIdx[ ] property. Value 1 corresponds to unchecked state,
      2 to checked. Value 0 allows to remove checkbox at all. So, to check all
      added items by default (e.g.), do following:
       ListView1.LVItemStateImgIdx[ -1 ] := 2;
      Use 1-based index of the image
      in image list ImageListState. Value 0 reserved to use as "no state image".
      Values 1..15 can be used only - this is the Windows restriction on
      state images.


← →
Виталий*   (2007-02-12 01:18) [2]

Спасибо! Оказывается все в kol.pas :)



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

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



Память: 0.45 MB
Время: 0.023 c
15-1188124654
matt
2007-08-26 14:37
2007.09.23
Если бы архитекторам пришлось работать так же, как программистам.


1-1184053838
Кирилл_А
2007-07-10 11:50
2007.09.23
Массив строк и Dll


15-1187958426
BaryVetaL
2007-08-24 16:27
2007.09.23
OpenOffice Calc + Delphi


15-1188217178
GrayFace
2007-08-27 16:19
2007.09.23
Не работает Debugger в BDS2006


5-1161366739
Zurius
2006-10-20 21:52
2007.09.23
Отображения длинной строки в ComboBox




   Наверх