Delphi Application – Not responding to Click And Draw not Correctly

38 viewsclickdelphigraphicswindows
0

I have an intermittent problem with most of the Delphi applications I build. It does not happen all the time and it seems that sometimes a clean/build fixes it or a system restart, but not always. It does not matter what is the size of my application. It could be a simple form with a couple of buttons or a bigger application with millions lines of code. It happens when I ran from the Delphi IDE but also when I ran the application standalone.

Essentially, in some cases, the comboxbox will simply be drawn as a white square and some other components will also be drawn funny or not drawn at all.

The other problem happening (which I feel is related to the first one) is that the click event does not get triggered with clicking with the mouse on buttons or checkbox (or anything really). The component gets focus, but the event is not fired. I can trigger it, but only when having a button in focus and pressing "Enter".

I tried with and without style, it does not help.

I feel I removed my graphics card and ran with integrated GPU and it was working fine (but it has been a while and I not certain anymore). Maybe it is a problem with my graphics card.

I ran the same software on a different computer and it does not happen.

Anyone knows what is happening?