View Issue Details

IDProjectCategoryView StatusLast Update
0003784JEDI VCL00 JVCL Componentspublic2006-08-30 07:37
ReporterThomasAssigned Toobones 
Status resolvedResolutionfixed 
Product Version3.20 
Target VersionFixed in Version3.30 
Summary0003784: Glitch drawing bug in TjvTreeView
DescriptionIf you have a tree

item [+]
- item
- item [+]


And you use the keys to move between them.
The following happens after leaving a focused item.
The drawing code almost always leaves "|" 1 pixel
border to the right. I think it is some rect invalidation
/ clearing that does include the full node rect.

[this happens on updated:Windows XP + Delphi 2005]


What my fix does is it ensures that the
"mausurement" of a node is always the same.
Additional Informationprocedure TJvTreeView.InternalCustomDrawItem(Sender: TCustomTreeView;
  Node: TTreeNode; State: TCustomDrawState; var DefaultDraw: Boolean);

#### OLD CODE ####

  if (State = []) or (State = [cdsDefault]) or (State = [cdsSelected]) then
    Canvas.Font := TJvTreeNode(Node).Font;
    Canvas.Brush := TJvTreeNode(Node).Brush;

#### NEW CODE ####

  if (State = []) or (State = [cdsDefault]) or (State = [cdsSelected]) then
      Canvas.Font := TJvTreeNode(Node).Font;
      Canvas.Brush := TJvTreeNode(Node).Brush;
      Canvas.Font.Name := TJvTreeNode(Node).Font.Name;
      Canvas.Font.Size := TJvTreeNode(Node).Font.Size;
TagsNo tags attached.



2006-06-29 06:05

administrator   ~0009724

Please provide the zipped sources of an application showing this.
For the record, I don't think setting the font name and size is a good thing, especially because they can be set to a completely different value from the parent.


2006-08-30 07:37

administrator   ~0010040

No answers for about 2 months, I'm assuming this is fixed.
Should it not be the case, please create a new issue

Issue History

Date Modified Username Field Change
2006-06-28 10:59 Thomas New Issue
2006-06-29 06:05 obones Note Added: 0009724
2006-06-29 06:05 obones Status new => feedback
2006-08-30 07:37 obones Status feedback => resolved
2006-08-30 07:37 obones Fixed in Version => Daily / SVN
2006-08-30 07:37 obones Resolution open => fixed
2006-08-30 07:37 obones Assigned To => obones
2006-08-30 07:37 obones Note Added: 0010040