Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

THTMLTreeView selection colors and themes

 Post Reply Post Reply
Himmer Eric View Drop Down

Joined: 18 May 2014
Posts: 95
Post Options Post Options   Quote Himmer Eric Quote  Post ReplyReply Direct Link To This Post Topic: THTMLTreeView selection colors and themes
    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
Delphi RIO 10.3

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support

Joined: 11 May 2010
Posts: 8590
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 2019 at 8:55am
You're correct about this. We have applied this improvement.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down