Windows System Tray icons - controlling position
Posted
by Jamo
on Stack Overflow
See other posts from Stack Overflow
or by Jamo
Published on 2009-12-28T22:00:23Z
Indexed on
2010/03/12
20:17 UTC
Read the original article
Hit count: 532
I have a few old apps I've written (in Delphi) which for various reasons use a system tray icon. Most are using AppControls TacTrayIcon or some other similar component.
Here's my question: How does one control the position of a tray icon? (i.e. where it is, say, relative to the system time -- 1st position/"slot", 2nd position/"slot", etc). I recall seeing a demo (C#, if memory serves) that allowed the user to "shift icon to the left" and "shift icon to the right", but don't recall how it was done.
I'd like to allow the user to select what position they want to icon to appear in, for Windows 2000 - Windows 7. (I understand Windows 7 handles system tray stuff a little differently, but haven't tested that out yet).
Thanks for any and all help.
© Stack Overflow or respective owner