Print Page | Close Window

THTMLTreeView selection colors and themes

Printed From: TMS Software
Category: VCL Components
Forum Name: VCL General
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=13233
Printed Date: 26 Jan 2020 at 11:12pm


Topic: THTMLTreeView selection colors and themes
Posted By: Himmer Eric
Subject: THTMLTreeView selection colors and themes
Date Posted: 03 Apr 2019 at 7:26pm
It appears that the THTMLTreeView is not honoring the node selection color of the current VCL Theme so I find I have to do this:

tv.SelectionColors.BorderColor := TStyleManager.ActiveStyle.GetSystemColor(clHighlight);
tv.SelectionColors.ColorFrom := TStyleManager.ActiveStyle.GetSystemColor(clHighlight);
tv.SelectionNFColor := TStyleManager.ActiveStyle.GetSystemColor(clHighlight);
tv.SelectionFontColor := TStyleManager.ActiveStyle.GetSystemColor(clHighlightText);
tv.SelectionNFFontColor := TStyleManager.ActiveStyle.GetSystemColor(clHighlightText);

These are the colors as set in the IDE, but they are not translating to the respective theme colors unless I set them manually in code to the same ones as above.

THTMLTreeView version 1.4.2.0
Delphi RIO 10.3




Replies:
Posted By: Bruno Fierens
Date Posted: 04 Apr 2019 at 8:55am
You're correct about this. We have applied this improvement.



Print Page | Close Window