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
Category: Delphi
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
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
Delphiversions.inc
In the olden days[tm] there was a project for maintaining a Delphiversions.inc file which created human readable conditional defines from the VERxx conditional defines of the Delphi compilers. Since it seems to have vanished from the face of the Internet[tm], I have just added a new page to the Delphi Wiki which you can just … Continue reading Delphiversions.inc
Displaying a multi line error message without wasting space
I have got a form that usually displays outputs from various sources, each of which has a frame for its own purpose. Now, if an error occurs with any of theses sources, I want to display that error message on the bottom of the form, just above the panel that contains the action buttons. It … Continue reading Displaying a multi line error message without wasting space