View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003608 | JEDI VCL | 00 JVCL Components | public | 2006-03-24 09:33 | 2006-04-13 04:24 |
Reporter | pcraig | Assigned To | obones | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.10 | ||||
Target Version | Fixed in Version | 3.30 | |||
Summary | 0003608: JvCheckTreeView displays wrong state image when setting checked state from code | ||||
Description | In my code I'm setting the checked state of the nodes prior to displaying the tree. It correctly sets the StateIndex of the node, but the image that is displayed is still the unchecked image. The following code will workaround the issue: treeview.Checked[node] := true; // workaround bug in tree which doesn't display the correct state image node.StateIndex := 0; node.StateIndex := ctvFilter.CheckBoxOptions.CheckBoxCheckedIndex; This is only an issue when using style cbsJVCL. I'm using JvCheckTreeView.pas version 1.21 | ||||
Tags | No tags attached. | ||||
|
correction to sample code: treeview.Checked[node] := true; // workaround bug in tree which doesn't display the correct state image node.StateIndex := 0; node.StateIndex := treeview.CheckBoxOptions.CheckBoxCheckedIndex; |
|
This is now fixed in CVS, version 1.22 for JvCheckTreeView.pas and 1.109 for JvComCtrls.pas |