Icon change problem

General TRichView support forum. Please post your questions here
Post Reply
starhu
Posts: 49
Joined: Fri Jan 17, 2014 6:33 pm

Icon change problem

Post 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
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply