I'd like to programmatically move the tray icon of my (or any other) application into the always visible area (or remove it from there).
Usually the tray icon is set to "Only show notifications". I'd like to change that to "Show icon and notifications" (see attached screenshot).
There doesn't seem to be an interface for this. But this doesn't mean that this is not possible.
The information seems to be stored in an encoded form in the registry: "Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify"
Some people have already worked on that. Here's a possible VB solution:
[url removed, login to view]
Your task is to write a function that allows to reliably do this from my application.
procedure MoveTrayIcon(exepath: String; position: Integer; status: TrayStatusShowHideNotify);
- Solution must be written in Delphi and needs to be compilable with Delphi XE
- Solution must be compatible with Windows 7, 10 and if possible XP
- The result must be exactly the same as if the user moved the icon manually (without rebooting).
***DEMO IS AVAILABLE*** Hello, I already made this function in Delphi, and BTW they are a bit 2 different functions one that works on Windows 7 or older and the other works on Windows 8 and later. Regards.
6 freelancere byder i gennemsnit €106 på dette job
Hello. I have large experience in converting code from one programming language to another programming language. What if I translate that VB sample into Delphi?