Recent

Author Topic: [solved] Windows (10?) snap assist support  (Read 6001 times)

ps

  • Full Member
  • ***
  • Posts: 136
    • CSS
[solved] Windows (10?) snap assist support
« on: October 21, 2016, 07:24:19 pm »
It's required some action or settings on TForm to respond on windows 10 "snap assist"?

I don't see my application in list (even I don't see lazarus IDE).

Lazarus 1.6 fpc 3.0.0
« Last Edit: November 17, 2016, 04:40:49 pm by ps »
Small simple CSS/box model implementation: https://github.com/pst2d/csscontrols/tree/dev

ASerge

  • Hero Member
  • *****
  • Posts: 2222
Re: Windows (10?) snap assist support
« Reply #1 on: October 21, 2016, 09:29:56 pm »
It's required some action or settings on TForm to respond on windows 10 "snap assist"?
Normal OnResize event.
Quote
I don't see my application in list (even I don't see lazarus IDE).
What's for the list?

ps

  • Full Member
  • ***
  • Posts: 136
    • CSS
Re: Windows (10?) snap assist support
« Reply #2 on: November 17, 2016, 04:39:49 pm »
I found solution. This enable correct app behavior under windows. So all works correctly:
- window shake function
- there is minimize animation (without this window only disappear)
- and of course app is present while snap assist

Code: Pascal  [Select][+][-]
  1.   {$IFDEF WINDOWS}
  2.   {$Warnings OFF}
  3.     Application.MainFormOnTaskBar := True;
  4.   {$Warnings ON}
  5.   {$ENDIF}
  6.  
Small simple CSS/box model implementation: https://github.com/pst2d/csscontrols/tree/dev

 

TinyPortal © 2005-2018