Achim Kalwa, who has been steadily contributing to GExperts, submitted a patch that changes the sort order used by the "Sort Selected Lines" Expert in GExperts to use the natural sort order, similar to the way Windows Explorer sorts files. E.g. Assume you want to sort the following: Label20 Label1 Label10 Label2 Label100 Label3 Label11 … Continue reading GExperts Sort Selected Lines Expert now uses “natural” sort order
Category: Delphi
Using the adler32 checksum in Delphi 2007
Delphi 2007 comes with the RTL unit zlib.pas which links to adler32.obj. adler32.obj is a precompiled object file implementing the Adler-32 checksum (most likely implemented in c). Delphi apparently doesn't actually use that function since it is simply declared as ... [delphi] procedure adler32; external; [/delphi] ... which is plain wrong but gets the job … Continue reading Using the adler32 checksum in Delphi 2007
Convert Strings Editor Expert
The Convert Strings Editor Expert was added to GExperts months ago, but I forgot to document it. Now there is the documentation. It is similar to the Multi Paste functionality of Delphi 10 Seattle and later. (But was developed independently, I didn't even know that it exists until Nick Hodges blogged about it.)
Reading and writing Esri shapefiles in Delphi
Esri Shapefile is a popular file format in geographic information systems (GIS). Probably because the format has been extensively documented (whitepaper in PDF format). In my day job at a company that does road condition surveys I work with quite a lot of data in shapefile format, so in order to read and write them … Continue reading Reading and writing Esri shapefiles in Delphi
dzEditorLineEndsFix 1.0.3 released
I have released a new version of my dzEditorLineEndsFix tool for Delphi 2006 to 2010. There is only one change: I removed the balloon hint it used to show at startup. It started to annoy the hell out of me (and I'm probably not the only one). The tool also now has its own page … Continue reading dzEditorLineEndsFix 1.0.3 released
GExperts 1.38 experimental twm 2017-01-15 released
I has been a while since my last experimental GExperts release. Erik still hasn't managed to do the final official release and I don't want to wait any longer. I have created installers for all supported Delphi versions. New features include: Reselect Desktop Expert Add To Formatter Capitalization Expert Enhanced Goto dialog Filter for GExperts … Continue reading GExperts 1.38 experimental twm 2017-01-15 released
GExperts now adds favorites to the Build Events
I use build events in Delphi programming to do various things, but usually it's this: pre-build: Increment the build number (in an external ini file) and create a version resource from that info. post-build: Add translations and jcldebug information to the executable. For each new program and quite a few older programs which don't do … Continue reading GExperts now adds favorites to the Build Events
Hiding the Quick Action and Description panel in Delphi with GExperts
Delphi 2010 introduced two new panels at the bottom of the Object Inspector in the Delphi IDE, the Quick Action panel and the Description panel. I didn't really notice them until I read this question on StackOverflow. It caught my attention because the screenshot showed mostly captions of the menu items added by GExperts to … Continue reading Hiding the Quick Action and Description panel in Delphi with GExperts
Filter for GExperts Class Browser
I have finished the filter functionality for the GExperts Class Browser expert. There are now filter fields for the class name as well as for the members. As of now (2017-01-07), there is no release of GExperts with this feature. But you can always get the sources and compile your own.
Drawing a Bitmap on a Paintbox in Delphi
Yes, I know, this is far from news, but since I just spent several hours trying to find out why my code didn't work, I'll document it here so I can look it up later. There are various ways to draw a bitmap on a paintbox in Delphi. I'll focus on the Windows API function … Continue reading Drawing a Bitmap on a Paintbox in Delphi