Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable flashing image in a button?

I have a Button which is linked to an ImageList. I change the ImageIndex over a OnClickEvent.

Now i got the problem that when i change the image with the OnClickEvent it changes, but if i move my mouse over it it shows me the old one and is pulsing.

Anyone knows how to disable this pulsing / flashing / swapping?

EDIT: HotImage were Index 0.

like image 713
Hidden Avatar asked Jun 05 '13 11:06

Hidden


1 Answers

Are you sure this not a VLC bug? I would advice you the following.

It would be great if you could post the OnClick() event so we can check if something is wrong with the code (auto-change).

To test if that is a VLC bug, try to use the same code on another version of Delphi, if the problem occurs again, it is up to your project and code. In case everything works fine, I would advice you to contact Embarcadero and to report the issue/bug to them. You will help to a Delphi community and make it stronger.

Also, if you are familiar with Windows API, try to code a pure native button with CreateWindowEx API and internal coded functions for OnClick() event. This is only case if you can't find any other way out.

like image 57
sensation Avatar answered Nov 18 '22 19:11

sensation