Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.09.23;
Скачать: 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 вся ветка

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

Наверх




Память: 0.47 MB
Время: 0.028 c
2-1188203269
Квэнди
2007-08-27 12:27
2007.09.23
onmousemove в stringgrid


2-1188203037
DimOk
2007-08-27 12:23
2007.09.23
Получение почты в Delphi


6-1170081738
ildarkh
2007-01-29 17:42
2007.09.23
TIDTCPServer(+SSL Intercept) внутри DLLки


3-1179738096
Робинзон
2007-05-21 13:01
2007.09.23
Экспорт данных БД в Word


2-1188227789
неискушенный
2007-08-27 19:16
2007.09.23
что это за объект - TAtom?