怎樣判斷PB中的TreeView控制元件的節點有沒有被勾選,或者PB中的TreeView控制元件的節點前面的checkboxes勾選是出發什么事件呢。
uj5u.com熱心網友回復:
CheckBoxes Boolean Specifies whether the state images are replaced by a checkboxes. The checkboxes are set to unchecked by default. The TreeView control will process mouse and keyboard input to toggle the checked state. Values are:?True ?Checkboxes are displayed.
?False ?Checkboxes are not displayed.
The state of an item's checkbox can be determined by checking the state picture index for the item:
Unchecked = 1
Checked = 2
通過檢查treeviewitem的StatePictureIndex 來判斷,1為未選擇,2為選中
uj5u.com熱心網友回復:
tvi_find.statepictureindex = 21 or 2
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/29813.html
標籤:控件與界面
