TElXTree scrollbar bug

I found that the horizontal scrollbar is not
displayed correctly in the ElXTree components and its derivatives when using
some VCL styles.
image

I also use the HighlightAlphaLevel=100 property.
And with light VLC Styles it looks like this:

image

That is,
the text disappears from the second and third columns.

Dark styles
seem to display everything correctly.

image
In addition, the plus/minus is not drawn from the VCL style.
image

And one more remark, if I may. In ElXTree.pas in lines 6899-6909, when you change the code to the one below, the appearance looks better:
      if HasFocus then
      begin
        if UseVCLStyles then
          LFill := VclStyleServices.GetSystemColor(clHighlight)
        else
          LFill := FOwner.FocusedSelectColor;
      end
      else if not FOwner.HideSelection then
      begin
        if UseVCLStyles then
          LFill := VclStyleServices.GetSystemColor(clHighlight)
        else
          LFill := FOwner.HideSelectColor;
      end;
png
png
ElXTree1.png
12K
png
png
ElXTree2.png
11K
png
png
ElXTree3.png
10K
png
png
ElXTree4.png
2K
Sign In or Register to comment.