Recent

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

QEnnay

  • Full Member
  • ***
  • Posts: 115
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 20.1 x64 + Cinnamon; Lenovo Flex 5 Ryzen 5 4500, 16GB memory
FPC: 3.2.0-1, Lazarus 2.0.12-0, all 64bit

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1311
    • 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