Fix for Access Violation in u_dzAutocompleteStrings

A while ago I blogged about the various possibilities for auto completion in TEdits. I created several units that supply auto completion based on a StringList files directories path (basically also directories) They all followed a basic principle: Implement IAutoComplete and IAutoComplete2 and provide different implementations for the IEnumStrings interface. They worked fine in Delphi … Continue reading Fix for Access Violation in u_dzAutocompleteStrings

Blocking the Windows Screen Saver in Delphi

Sometimes your program needs to block the screen saver from automatically kicking in. My use case was that the program was recording data and whenever the screen saver was active, the data was lost (No idea why, it probably had something to do with the way HID is implemented in Windows.) So I was looking … Continue reading Blocking the Windows Screen Saver in Delphi

Extend the event OnClick of all MenuItems in the screen to execute another block of code

Shameless self promotion: On StackOverflow somebody asked the question in the title and I answered it. And as you might have guessed, I am mighty proud of having had that idea. It might be interesting to know that this is how GExperts fixes some of the IDE bugs and enhances some forms: It creates a … Continue reading Extend the event OnClick of all MenuItems in the screen to execute another block of code