Recent

Author Topic: Screen Snapping  (Read 3278 times)

G90210

  • New member
  • *
  • Posts: 7
Screen Snapping
« on: February 08, 2017, 06:58:15 pm »
Hello,
anyone has implemented screen snapping (Windows, OSX)? I was able to find only this old message in the forum (sadly, no responses): http://forum.lazarus.freepascal.org/index.php?topic=9192.0

Thanks!
Windows 10, 64bit, Lazarus v1.6.2, SVN rev 53354

balazsszekely

  • Guest

G90210

  • New member
  • *
  • Posts: 7
Re: Screen Snapping
« Reply #2 on: February 08, 2017, 09:22:45 pm »
I'm sorry, maybe I have used the wrong word, but what I meant is that the form should stick to screen edges when being moved

Perhaps this one: http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Taking_a_screenshot_of_the_screen
Windows 10, 64bit, Lazarus v1.6.2, SVN rev 53354

balazsszekely

  • Guest
Re: Screen Snapping
« Reply #3 on: February 08, 2017, 09:45:03 pm »
Quote
@G90210
I'm sorry, maybe I have used the wrong word, but what I meant is that the form should stick to screen edges when being moved
Delphi forms have a ScreenSnap and a SnapBuffer property. There is no such thing in Lazarus, it shouldn't be to difficult to implement though, especially under windows. I would create a thread that monitors the position and size of the form and compare with the screen coordinates. When needed the form snaps.

 

TinyPortal © 2005-2018