2 hours ago · Tech · hide · 0 comments

AI;DR – This blog post was written mostly by Claude Code, which also implemented the feature it describes. If you don’t want to read “AI slop”, stop reading now. When you copy components from one form and paste them into another, the Delphi IDE silently drops every event link. The pasted buttons have an empty OnClick, and the code of their event handlers stays behind in the old unit, so you go through the Object Inspector and the editor and put it all together again by hand. Feature request #75 asked for a way around that, and GExperts now has one: two new experts, Copy with Event Handlers and Paste with Event Handlers. An example Here is a customer list with a search bar at the top: a panel with an edit and two buttons, which have three event handlers between them: procedure TfmCustomers.edSearchChange(Sender: TObject); begin btnSearch.Enabled := Trim(edSearch.Text) <> ''; end; procedure TfmCustomers.btnSearchClick(Sender: TObject); begin FilterList(edSearch.Text); end; procedure…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.