Yesterday, while working with Delphi 10.1 something happened that made me think I had introduced a bug in the search path dialog enhancement of GExperts: I had dropped some directories from the explorer onto the memo inserted by the GExperts enhancement, switched to the list view and back to the memo, then pressed the "Make … Continue reading Sarch path dialog behaviour changed from Delphi 2010 to XE
Author: dummzeuch
“Hooking” KeyDown in a Firemonkey form
As said in my last post: " The hard part is hooking the form in a way so all I need to do is call TForm_ActivatePositioning as in the VCL." As it turns out, that's even easier to do than in the VCL. No subclassing of the window, just adding a new control is sufficient. … Continue reading “Hooking” KeyDown in a Firemonkey form
Snapping a Firemonkey window to monitor halves / quadrants
I always wanted to start playing with Firemonkey but so far just didn't find the right project. This is my first try to port a VCL utility function to Firemonkey. Note that this will probably not work on all platforms. It's tested on Windows only. So, how do we get the code from my last … Continue reading Snapping a Firemonkey window to monitor halves / quadrants
Snapping windows to monitor halves / quadrants revisited
In my last post I talked about snapping windows to monitor halves and quadrants. I have been using that code for a few days and found it has a few shortcomings: If a window has size constraints, these will still be respected (which is good) but this will result in the window not being moved … Continue reading Snapping windows to monitor halves / quadrants revisited
Snapping windows to monitor halves / quadrants
You probably know about the Windows 7+ feature to snap a window to the left or right side of the monitor via Windows+Left / Windows+Right hotkey. You might even know that Windows 10 extended this to snap a window to the top or bottom and even to one of the quadrants of your monitor. (I … Continue reading Snapping windows to monitor halves / quadrants
GExperts 1.38 experimental twm 2016-06-05
NOTE: The GExperts homepage is linking here, but this is not the latest release. See the experimental GExperts version page instead. This is another test release before Erik is going to do an official 1.39 release. Please report any bugs you may find (preferentially in the GExperts community on Google+ or the bug tracker on … Continue reading GExperts 1.38 experimental twm 2016-06-05
Displaying huge text files
Sometimes programmers have to deal with larger than usual text files. Examples are log files or XML dumps of databases. For my tests, I used a dump of the English Wikipedia in XML format. This file is 48 gigabytes in size and as I found out only today contains 789,577,286 lines of text. If you … Continue reading Displaying huge text files
Clearing a TTreeView
Note to self: If you want to clear the items that were added at design time to a TTreeView, you must make sure it has a handle. The following does not work (in Delphi 2007): [delphi] constructor TForm1.Create(Owner: TCoponent); begin inherited; TreeView1.Items.Clear; end; [/delphi] Adding a TreeView1.HandleNeeded makes it work: [delphi] constructor TForm1.Create(Owner: TCoponent); begin … Continue reading Clearing a TTreeView
Known IDE Packages in Delphi
Prompted by a comment in a post by Jeroen Pluimers on Google+ (no longer available) I had a look at what is actually listed in [text gutter="false"] [HKEY_CURRENT_USER\Software\Borland|Codegear|Embarcadero\BDS|Delphi\#.0\Known IDE Packages] [/text] and found some interesting entries. (I started with ancient Delphi versions, but will get to the more recent ones further down.) In Delphi 6 … Continue reading Known IDE Packages in Delphi
GExperts 1.38 experimental twm 2016-05-26
This is another test release before Erik is going to do an official 1.39 release. Please report any bugs you may find (preferentially in the GExperts community on Google+ or the bug tracker on SourceForge) Again, I have built installers for each Delphi version. These installers should install everything that is necessary, including the files … Continue reading GExperts 1.38 experimental twm 2016-05-26