Recent

Author Topic: Change color of disabled Shell components?  (Read 4264 times)

QEnnay

  • Full Member
  • ***
  • Posts: 132
Change color of disabled Shell components?
« on: August 17, 2021, 07:40:38 pm »
Hi, I am using ShellTreeView and ShelListView and all OK.

I sometimes need to disable them but still have the data visible.

I set ReadOnly for both, but both still allows Navigation. Not my idea of "Read Only." :)

I then set the Enabled to False for both and I can see the data and they are not navigable. WooHooo

BUT, the Tree has a White background and the List has a Gray. Arrrgggh.

How can I make the List have a White background or at worst, make the Tree have Gray?

I know Enabled:=False; generally shows Gray, but I'd really like to see them both the same color.

Linux-Mint 22.2 x64 + Cinnamon; i7, 32GB memory
Lazarus 4.4-64bit

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1576
    • Lebeau Software
Re: Change color of disabled Shell components?
« Reply #1 on: August 17, 2021, 11:01:11 pm »
How can I make the List have a White background or at worst, make the Tree have Gray?

I know Enabled:=False; generally shows Gray, but I'd really like to see them both the same color.

Try putting them in another container control, like a TPanel, and then disable the container rather than disabling them directly.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

 

TinyPortal © 2005-2018