Recent

Author Topic: How to detect activation application ?  (Read 1131 times)

Borneq

  • Full Member
  • ***
  • Posts: 248
How to detect activation application ?
« on: February 03, 2020, 09:29:05 pm »
I want check in my editor if files changed outside.
One way is check file time and size in Application.OnActivate, this work on Windows but not in Linux Mint CInnamon, better is Application.OnRestore which is called after each restoring from minimization, but not after go to application by Alt+Tab.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: How to detect activation application ?
« Reply #1 on: February 03, 2020, 10:12:14 pm »
Hi!

Application.OnActivate is fired only once in Linux: The first time the app is shown.

If you only want to check after restoring from minimized use Form.OnResize.
There you can check if the form was minimized and then check your files.

Winni

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: How to detect activation application ?
« Reply #2 on: February 03, 2020, 11:31:34 pm »
MInimization I check by Allication.OnRestore,
but is possible check after Alt+Tab without minimization?
Is OK if I click on other appication window and again on my editor, but not detect Alt+tab.
Similar is get Application.Active in timer, after go out with Alt+tab, in Cinnamon Application think that is active.
« Last Edit: February 03, 2020, 11:51:07 pm by Borneq »

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: How to detect activation application ?
« Reply #3 on: February 03, 2020, 11:52:14 pm »
As I told you:

use Form.OnResize.
There you can check if the form was minimized and then check your files.

Winni

 

TinyPortal © 2005-2018