View Issue Details

IDProjectCategoryView StatusLast Update
0004403JEDI VCL00 JVCL Componentspublic2008-12-22 04:29
ReportertetarddAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version3.32 
Target VersionFixed in Version 
Summary0004403: Inconsistencies in selection of items in TJvTreeView (compared to VCL)
DescriptionThe way TreeNodes are displayed selected (when HideSelection is False) suffers from inconsistencies compared to Delphi's VCL.

To reproduce, simply create a form with 1 TJvTreeView and 1 TTreeView (both having HideSelection = False and ReadOnly = True) and one button whose OnClick code is below:

procedure TForm8.Button1Click(Sender: TObject);
Var
   TreeNode : TTreeNode;
begin
     // Populate Jedi's TreeView:
     TreeNode := JvTreeView1.Items.AddChild(Nil, '1--------');
     JvTreeView1.Selected := TreeNode;
     TreeNode := JvTreeView1.Items.AddChild(Nil, '2--------');
     TreeNode := JvTreeView1.Items.AddChild(Nil, '3--------');
     TreeNode := JvTreeView1.Items.AddChild(TreeNode, '4------');

     // Populate Delphi's TreeView with same items:
     TreeNode := TreeView1.Items.AddChild(Nil, '1--------');
     TreeView1.Selected := TreeNode;
     TreeNode := TreeView1.Items.AddChild(Nil, '2--------');
     TreeNode := TreeView1.Items.AddChild(Nil, '3--------');
     TreeNode := TreeView1.Items.AddChild(TreeNode, '4------');
end;

1- As you can see, exactly the same items are created dynamically in the two tree views. However, Delphi's tree view shows one TreeNode selected (gray background around '1-----') while this does not happen in TJvTreeView.

2- Select treenode called '1-----' in TJvTreeView, the select rect is displayed but the gray background still not there. To show thta background, you have to select another treenode (click on '2-----').

3- Click the button once again to create new items. The selected treenode background has disappeared again in TJvTreeView (but not in Delphi's TTreeView).

Additional InformationCode and executable attached in zip file.
TagsNo tags attached.

Activities

2008-07-16 07:40

 

TJvTreeView Bugs.zip (291,686 bytes)

obones

2008-07-17 00:21

administrator   ~0014390

Please use version 3.33, or better, the SVN version and try again. This might have been fixed already.

tetardd

2008-07-17 01:36

reporter   ~0014391

I compared the source code for both JvComCtrls.pas and JvExtComCtrls.pas units where the JvTreeView control resides (and its ancestors) for both version 3.32 and 3.33 and there is no change in the code that tackles this bug.
Therefore, the bug has not been corrected in version 3.33.

obones

2008-07-17 01:54

administrator   ~0014392

And what about the SVN version? Further to this, there might be changes in other files that could have an impact on this. I'm sorry, but version 3.32 is too old to be interesting for such bug reports

obones

2008-10-10 05:15

administrator   ~0014824

Hello, any news?

obones

2008-12-22 04:29

administrator   ~0015132

No news, no action

Issue History

Date Modified Username Field Change
2008-07-16 07:40 tetardd New Issue
2008-07-16 07:40 tetardd File Added: TJvTreeView Bugs.zip
2008-07-17 00:20 obones Status new => acknowledged
2008-07-17 00:21 obones Note Added: 0014390
2008-07-17 00:21 obones Status acknowledged => feedback
2008-07-17 01:36 tetardd Note Added: 0014391
2008-07-17 01:54 obones Note Added: 0014392
2008-10-10 05:15 obones Note Added: 0014824
2008-12-22 04:29 obones Note Added: 0015132
2008-12-22 04:29 obones Status feedback => resolved
2008-12-22 04:29 obones Resolution open => unable to reproduce
2008-12-22 04:29 obones Assigned To => obones