View Issue Details

IDProjectCategoryView StatusLast Update
0002405JEDI VCL00 JVCL Componentspublic2005-02-04 04:08
ReporteranonymousAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.00 
Summary0002405: TJvCheckTreeView Checked property not reading right array value?
DescriptionUsing the CheckTVDemo example (D6 Enterprise, JVCL3 2004-11-22) I seem to see a problem with accessing the Checked property. It does not appear to consistently return whether the checkbox is checked or not.

Changing the demo to use the Style JVCL implementation made the program work as expected. The MS implementation style appears to not work correctly (e.g. the Checked status is inconsistent).
TagsNo tags attached.

Activities

user72

2004-12-21 01:34

  ~0005967

change the followng method:

function TJvCheckTreeView.GetChecked(Node: TTreeNode): Boolean;
begin
  with CheckBoxOptions do
    if Style = cbsJVCL then
      Result := (Node <> nil) and (Node.StateIndex in [RadioCheckedIndex, CheckBoxCheckedIndex])
    else
      Result := inherited Checked[Node];
end;

anonymous

2005-01-10 21:15

viewer   ~0006120

That looks like it. Thank you!

Issue History

Date Modified Username Field Change
2004-12-20 00:16 anonymous New Issue
2004-12-21 01:34 user72 Note Added: 0005967
2004-12-21 01:34 user72 Status new => feedback
2005-01-10 21:15 anonymous Note Added: 0006120
2005-02-04 04:08 obones Status feedback => resolved
2005-02-04 04:08 obones Fixed in Version => 3.00
2005-02-04 04:08 obones Resolution open => fixed
2005-02-04 04:08 obones Assigned To => obones