ToolBarButton image not recognizable when setting Enabled property to false

  • Thread starter Thread starter Klaus Bonadt
  • Start date Start date
K

Klaus Bonadt

I use VS .Net 2002 and a C# project.
When I set ToolBarButton.Enabled to false, the corresponding icon is just
gray. I mean it is not grayed a little bit in a way that you have the chance
to recognize the underlying image, the image is completely hidden. This is
very ugly, not user friendly and not the expected common behaviour.

What did I wrong?
The icons are in an image list. Even when I copy the images from the toolbar
resource of an C++ project (where they work correctly), they are fine in
enabled mode; however, they don't work in disabled mode.

Any ideas?
Thanks.
Klaus
 
* "Klaus Bonadt said:
I use VS .Net 2002 and a C# project.
When I set ToolBarButton.Enabled to false, the corresponding icon is just
gray. I mean it is not grayed a little bit in a way that you have the chance
to recognize the underlying image, the image is completely hidden. This is
very ugly, not user friendly and not the expected common behaviour.

What did I wrong?

That's a limitation of the .NET toolbar control:

<msdn>
If the image or text has multiple colors, they display in a monochromatic gray.
</msdn>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top