Delphi

Delphi

The “Delphi in all its glory” book [5] – AI-Assisted Development for Delphi

“AI-Assisted Development for Delphi” is the fifth book in the “Delphi in All Its Glory” series. Released April 2026.   Why This Book Exists There are a gazillion books about AI out there. This is the only one written for Delphi developers. Your LinkedIn feed says programmers will be obsolete by next Thursday. Meanwhile, you’re […]

The “Delphi in all its glory” book [5] – AI-Assisted Development for Delphi Read More »

Smart CodeInsight does not appear in Delphi IDE

Smart CodeInsight stopped appearing in my Delphi IDE after an upgrade. Here is the fix. Uncheck the “Enable Smart CodeInsight” checkbox in Options, close Options, then reopen Options and check the box again. A EULA prompt should now appear (Embarcadero Supplemental AI Terms). Accept it, and Smart CodeInsight will work again. Apparently, during the upgrade

Smart CodeInsight does not appear in Delphi IDE Read More »

The Science Behind CLAUDE.md: What the Research Says

The Controversy In early 2026, two independent research teams published the first empirical studies on whether CLAUDE.md-style instruction files actually improve AI coding performance. Their headlines seemed to tell different stories — one modest, one dramatic. Tech blogs promptly cherry-picked the modest one and ran with it. An article on XDA Developers declared that CLAUDE.md

The Science Behind CLAUDE.md: What the Research Says Read More »

AI Image Generation from Delphi — A 2026 Roundup

The Delphi ecosystem has grown significantly for AI integration. Here’s what’s available today for adding AI image generation to your Delphi applications: Official Components (GetIt / RAD Studio) Stability.ai API Wrapper for Delphi — Available on GetIt. Wraps Stability AI’s cloud API for Stable Diffusion 3.5, Stable Image Ultra. Supports image generation, editing, upscaling, and

AI Image Generation from Delphi — A 2026 Roundup Read More »

Automatic language translator engine for Delphi GUIs [update 2026]

RTTI-based automatic language translator engine. Let your application self-translate to any language with only two lines of code! Overview This library translates all GUI strings (TLabel.Caption, TLabel.Hint, TMenuItem.Caption, etc.) for all live forms in your application. The text is stored in INI files which can be sent to DeepL for automatic translation. Downloading the code

Automatic language translator engine for Delphi GUIs [update 2026] Read More »

Connecting Claude to Delphi

Prompt: Can I Claude Code build from command line via MSBuild and then analyze the output of the Delphi compiler/msbuild? The compiler is located in c:\Delphi\Delphi 13\bin\dcc32.EXE but I would prefer to pass the dproj file to MsBuild. I think MsBuild is installed here: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe Answer: this requires the user to enable the WSL Interop

Connecting Claude to Delphi Read More »

A Delphi Fuzzy String Compare Algorithm

FuzzyStringCompare calculates an approximate similarity percentage between two strings. It uses a heuristic to count matching characters that are roughly in similar positions, allowing for a tolerance based on string lengths. The tolerance is about one-third of the longer string’s length plus the length difference. The algorithm greedily matches characters from the shorter string to

A Delphi Fuzzy String Compare Algorithm Read More »

FMX bug – Form has incorrect size after startup

I have this weird bug in Delphi 13 FMX where the height of the controls is not correct, at app startup. procedure TForm1.AfterConstruction; begin inherited AfterConstruction; MakeDemoBubble; end; TAutosizeBoxText (based on TRectangle) is parented in a ScrollBox. It is set to Align=Top. procedure TForm1.MakeDemoBubble; begin mmoUserResponse.Text := ‘WhatsApp-like text bubble. ‘ + #13#10+ ‘Cool and

FMX bug – Form has incorrect size after startup Read More »

Embarcadero Delphi CodeRage 2025 Summary [Day1] Free Code Agent: Build Faster Right in Your RAD Studio IDE

“Free Code Agent: Build Faster Right in Your RAD Studio IDE” Presented by Yai (CTO at Solutions, Embarcadero MVP)   Core Idea * AI Code Agents are tools that accelerate coding tasks by generating, refactoring, and scaffolding code inside your IDE. * They do not replace developers; they augment productivity. * Example used: Gemini CLI

Embarcadero Delphi CodeRage 2025 Summary [Day1] Free Code Agent: Build Faster Right in Your RAD Studio IDE Read More »

Why we can’t close a form that runs a tight FOR loop, even if we are using Application.ProcessMessages?

A Stack Overflow user wanted to know why clicking on the form’s close button while some FOR loop is running does nothing: procedure TForm1.Button1Click(Sender: TObject); var i: Integer; begin for i := 0 to 9999999 do begin Memo1.Lines.Add(‘hi’); Application.ProcessMessages; end; end; The issue comes from the lack of understanding of how the forms work. Here

Why we can’t close a form that runs a tight FOR loop, even if we are using Application.ProcessMessages? Read More »

How to highlight identifier under cursor in (any) Delphi IDE

If you place the cursor on an identifier (variable/function name/etc), CnPack will show you where that identifier is used in your code. Look for example how easy it is to spot where the FBuffPos variable is used in the code below: Also, see how “dangerous” instructions (“Exit”) have been marked in blue! Note: On your

How to highlight identifier under cursor in (any) Delphi IDE Read More »

A vertically collapsible panel for Delphi (round up)

I was looking for a collapsible panel for many years. The most important feature I want from this control is to be able to collapse vertically. Here are the results of my research: FoldingPanel (VCL) I used FoldingPanel v1.3  http://www.torry.net/authorsmore.php?id=2386 for years. It comes with nice chevron bitmap too. Advantage: The component comes as a

A vertically collapsible panel for Delphi (round up) Read More »

Can’t load package xyz.bpl. %1 is not a valid Win32 application – BPL dependency failure

Locating BPL dependency failure In one instance my package required another package, but its BPL was not present. The error I got was “Can’t load package xyz.bpl. %1 is not a valid Win32 application”. I used the Dependency scanner feature from ‘PE Explorer’ ( www.heaventools.de ) to detect this. There was supposed to be a

Can’t load package xyz.bpl. %1 is not a valid Win32 application – BPL dependency failure Read More »

Again on FreeAndNil – A meaningless debate?

Recently, I came across a forum where somebody described FreeAndNil as an “abomination” and I think that’s a bit over the top. Let’s unpack this topic carefully, with technical clarity and an eye for proportion. FreeAndNil(SomeObject) is just syntactic sugar for: if SomeObject <> nil then begin SomeObject.Free; SomeObject := nil; end; The actual implementation

Again on FreeAndNil – A meaningless debate? Read More »

Amsterdam Delphi Summit 2025 (A call to arms for bringing in “fresh blood”)

I was undecided if I should attend to this conference or not because I didn’t have enough information about the previous one. So, here is my 2.5 cents. A Journey by Bicycle Setting off in early June from Denmark on two wheels, I pedaled a few hundred km for the Delphi summit. The northern weather

Amsterdam Delphi Summit 2025 (A call to arms for bringing in “fresh blood”) Read More »

Connecting Delphi 12 to Gemini AI (Smart CodeInsight)

Generate your key here https://aistudio.google.com/app/apikeyand enter it into the IDE. As URL enter: https://generativelanguage.googleapis.com/v1 Parameters Top-P [official documentation] Top-P changes how the model selects tokens for output. Tokens are selected from the most (see top-K) to least probable until the sum of their probabilities equals the top-P value. For example, if tokens A, B, and

Connecting Delphi 12 to Gemini AI (Smart CodeInsight) Read More »

Scroll to Top