Since the stability of some Delphi IDE versions leave something to desire, people have asked for an autosave feature for a long time. Delphi 2010 eventually got "Save on compile" while older versions only had "Save on run". Ray Lischner originally wrote an AutoSave wizard for Delphi 5 (if I remember correctly) and ported it … Continue reading Autosave Wizard for Delphi 6 to XE7
Author: dummzeuch
Autosave on compile in Delphi?
Did you know that the Delphi IDE automatically saves all files when you compile a project? I didn't. In order to activate it, go to the Tools/Options dialog and there on the "Environment Options" page. There, you will find an "Autosave options" group. Set the checkmark for "Editor files" (and close the dialog with "OK" … Continue reading Autosave on compile in Delphi?
Experimental GExperts Version 1.37-2014-09-04 released
The latest version is the first version that supports Delphi XE7. There is nothing really new about the formatter code. But the new release can be installed even if you don't have the official GExperts installer (yet). This is an extract from the readme file: ** Installing without an official installer ** With two Delphi … Continue reading Experimental GExperts Version 1.37-2014-09-04 released
Showing a dropdown menu when clicking a button
A rather common question on StackOverflow, the Delphi newsgroups and elsewhere is how to display a drop down menu when the user presses a button. There are many proposed solutions and even something built into newer versions of Delphi (Which doesn't work for me for some reason.) Here is mine (which is based on this … Continue reading Showing a dropdown menu when clicking a button
Translating Windows messages to strings
I could not find anything like this so I wrote it myself: This class translates most Windows message ids into their symbolic name. type TWmMessageToString = class function MsgToString(const _WmMsg: Cardinal): string; overload; function MsgToString(const _Msg: TMessage): string; overload; end; The names are taken from Delphi 2010's messages.pas Delphi 2010's controls.pas Wine It seems pretty … Continue reading Translating Windows messages to strings
Preventing a dialog from closing while autocomplete is active
In an older blog post I wrote about AutoComplete for TEdits using SHAutoComplete. I just actually tried to use that function in one of my applications and found that there is a quite annoying problem with it: If you have set the OK button's Default property to true (so it gets "clicked" when you press … Continue reading Preventing a dialog from closing while autocomplete is active
Sabotaged by Windows Update
Microsoft released a Windows Update this week that caused quite a problem for Delphi developers still using Delphi 2006 to 2010. When starting a second instance of the IDE they now get the error Cannot create file C:\Users\Admin\AppData\Local\Temp\EditorLineEnds.ttr The update in question is a security update for all supported Windows versions and has the number … Continue reading Sabotaged by Windows Update
Using a bar code scanner? Watch out for your keyboard layout!
We are using a bar code scanner to scan the serial numbers of all hard disk drives we buy. This is supposed to make it easier and less error prone to put them into an Excel list for tracking their whereabouts (we use quite a lot of drives for storing video data). Of course, when … Continue reading Using a bar code scanner? Watch out for your keyboard layout!
Windows 7 Blue Screen Of Death with error 0x7B
If you ever had to change the motherboard of your computer and wanted to keep the Windows installation on it, you might have encountered the dreaded Blue Screen of Death with an unhelpful error code. In my case, this was a Windows 7 installation where the on board SATA controller started to misbehave. These problems … Continue reading Windows 7 Blue Screen Of Death with error 0x7B
Enabling the Developer Tools in Delphi Chromium Embedded
Recently I had to debug some JavaScript code that did not work correctly, when loaded into a Chromium Embedded frame in one of my applications. There is built-in support for the Developer Tools in Chrome, which is also available in Chromium Embedded. After searching the web, I found that the DCEF3 sources already come with … Continue reading Enabling the Developer Tools in Delphi Chromium Embedded