If you have ever had a TMemo on a modal form with an OK and Cancel button, where the latter has its Cancel property set to true, you might have found that Esc does not cancel the dialog while the memo has got the focus. According to David Heffernan that's because the VCL tells it … Continue reading TMemo vs. Esc key
Month: June 2016
Sarch path dialog behaviour changed from Delphi 2010 to XE
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
“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