1

There seems to be an issue with the TForm.ScreenSnap property on Windows 10.

I always have ScreenSnap active for Main Forms, and the SnapBuffer set to 10 pixels. This works fine until Windows 10.

Now, if ScreenSnap is active, the Form will stick to the screen edge as it is supposed to do. But, if I want to un-stick it, I have to move the window vigorously. If I move the mouse too slow, the Form will remain stuck to the screen border, resulting in a very weird user experience.

Does anyone know how to fix this (without disabling ScreenSnap on Windows 10)? Or, at least, can anyone else confirm this as a bug?

Dalija Prasnikar
  • 27,212
  • 44
  • 82
  • 159
Gabriel
  • 20,797
  • 27
  • 159
  • 293
  • Err, does ScreenSnap work under FPC + Lazarus? – Alex James Apr 28 '20 at 19:00
  • @AlexJames FPC does not have `ScreenSnap`, that is a feature of Delphi: [`TForm.ScreenSnap`](http://docwiki.embarcadero.com/Libraries/en/Vcl.Forms.TForm.ScreenSnap) – Remy Lebeau Apr 28 '20 at 20:58
  • 1
    This appear to be a known bug: [RSP-27155: Cannot be release from the screen edge when ScreenSnap is enabled](https://quality.embarcadero.com/browse/RSP-27155). Seems to be DPI-related, as the ticket poster says: "*If you change the Project-DPI setting to something other than PerMonitorV2, ScreenSnap will work properly.*" – Remy Lebeau Apr 28 '20 at 21:08
  • @RemyLebeau, exactly, it was an ironic q. – Alex James Apr 28 '20 at 21:08
  • 1
    temporary "fix": Set SnapBuffer to a small value (like 3) and the bug will be less visible. – Gabriel Apr 28 '20 at 21:51
  • 1
    @InTheNameOfScience There is a huge difference between 3 and 4. 3 works OK but 4 behaves like default 10. Any idea why? – Xel Naga Jul 18 '20 at 11:10
  • 1
    @Andrzej - Remy Lebeau provided an explanation for that: unfortunately, it's a (unfixed) Delphi bug. Wait until they release an edition that fixes the bug and update your license. Under the new licensing scheme you will only get bug fixes for one year. I like how they added a looooooooooooooong time awaited feature (High DPI support) just to break with that another feature. – Gabriel Jul 18 '20 at 13:06

0 Answers0