Announcement

Collapse
No announcement yet.

App Zorder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • App Zorder

    I'm trying to make it so that a left click on a tray icon brings the application into view as this seems to be standard behavior for a left tray icon click but out the methods I have tried it only brings the window into view once per launch, have tried:

    Code:
    User32Library = Library.Load("user32.dll")
    User32Library.BringWindowToTop(Application.GetWndHandle())
    User32Library.SetWindowPos(Application.GetWndHandle(),0,0,0,0,0,0x3)
    
    Window.SetOrder(Application.GetWndHandle(),HWND_TOP)
    what am I missing?

  • #2
    The solution is to make the main window SetForegroundWindow before calling BringWindowToTop.

    Comment


    • #3
      Thanks for sharing the solution when you've found one, more people should do that! :yes
      Bas Groothedde
      Imagine Programming :: Blog

      AMS8 Plugins
      IMXLH Compiler

      Comment

      Working...
      X