I just updated the Custom Container Pack sources to support Delphi XE2 to XE7. It was mostly a matter of creating the packages for the newer versions. I also had to adapt the registration code to changes in Delphi XE2. It now compiles and installs. I have not tested it extensively. We use it at … Continue reading Custom Container Pack for Delphi XE2 to XE7
Category: Delphi
dzlib compiles with all Delphi versions from 2007 to XE6
Today I spent some time to make dzlib compile with all Delphi versions from 2007 to XE6 (XE7 to come later). It didn't take too long since it already supported 2007, XE2 and XE6. It's interesting to see, how the RTL evolved between these versions. Some examples: The IsWhitespace function started out as a class … Continue reading dzlib compiles with all Delphi versions from 2007 to XE6
Autosave Wizard for Delphi 6 to XE7
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
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