Jump to content

Disabled image in TUniImage


Recommended Posts


Is it possible to make the image in TUniImage look like disabled image on the button?

In VCL app for this purpose I usually create a grayed copy of the image.


Also found some issue (bug?):

When I want to change TUniImage by assigning different images from TUniImageList like this:

im: TUniImage;
ilMain: TUniImageList;
b: Boolean;
if b then
  ilMain.GetIcon(102, im.Picture.Icon)
  ilMain.GetIcon(101, im.Picture.Icon);

the code works successfully (image is visually changed) only once, all the following code executions don't do anything, the image stays the same, though GetIcon always returns true.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...