Page 1 of 1

Icon change problem

Posted: Sun Mar 09, 2014 7:36 pm
by starhu
Hello,

My customer created a new set of icons which I used in the ActionTest demo.

I used jpg, png and bmp.

The Undo and Redo buttons were completely grey when inactive with jpg and bmp.
The png images were worse: they had black area around them.

Can't the TToolButton show the images well, or is there something with the pictures?

I also used the Silk Icons which you recommend on your page but in inactive state they are also grey squares.

Thank you

Posted: Mon Mar 10, 2014 5:39 pm
by Sergey Tkachenko
The standard TToolBar generates old-fashioned inactive images.

Solutions:
- create a set of nice disabled images (using a graphic editor), add them to an imagelist and assign this imagelist to ToolBar.DisabledImages
This approach is used in ActionTest demos

- use a thirdparty toolbar that can generate modern looking disabled images, such as http://www.silverpointdevelopment.com/sptbxlib/

By the way, I recommend using our images (from ActionTest demos) instead of Silk icons, because:
- our images already have disabled versions;
- our images include icons for all main operations
- Silk icons have low contrast, they look good only on a very light background.