View Issue Details

IDProjectCategoryView StatusLast Update
0003608JEDI VCL00 JVCL Componentspublic2006-04-13 04:24
ReporterpcraigAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.10 
Target VersionFixed in Version3.30 
Summary0003608: JvCheckTreeView displays wrong state image when setting checked state from code
DescriptionIn 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
TagsNo tags attached.

Activities

pcraig

2006-03-24 09:37

reporter   ~0008721

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;

obones

2006-04-13 04:24

administrator   ~0009086

This is now fixed in CVS, version 1.22 for JvCheckTreeView.pas and 1.109 for JvComCtrls.pas

Issue History

Date Modified Username Field Change
2006-03-24 09:33 pcraig New Issue
2006-03-24 09:37 pcraig Note Added: 0008721
2006-04-13 04:24 obones Status new => resolved
2006-04-13 04:24 obones Resolution open => fixed
2006-04-13 04:24 obones Assigned To => obones
2006-04-13 04:24 obones Note Added: 0009086