Hypoviax
asked on
Showing program in taskpane
How can i show my program on minimise and on load in the task pane in the bottom right hand corner near the time and the sound function?
This is instead of showing it as an application in the normal part of the task bar.
I hope you understand what i mean.
Regards,
Hypoviax
This is instead of showing it as an application in the normal part of the task bar.
I hope you understand what i mean.
Regards,
Hypoviax
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help i believe that both were equal,
Snehanshu,
Please go to https://www.experts-exchange.com/questions/20793756/Points-for-Snehanshu.html for your equal share
Reagrds,
Hypoviax
Snehanshu,
Please go to https://www.experts-exchange.com/questions/20793756/Points-for-Snehanshu.html for your equal share
Reagrds,
Hypoviax
Thanks Hypoviax :-)
There are some freeware components that let you do it without too much coding.
Here's a previously accepted answer:
https://www.experts-exchange.com/questions/20774429/Putting-Delphi-6-0-application-to-the-system-tray.html
Accepted Answer from kretzschmar
Date: 10/22/2003 07:55PM IST
Accepted Answer
well, then just go to www.torry.net
go to search keyword trayicon
there are some free components,
download one or more install it
and drop it then one your form
*-*-* OR *-*-*
You could do a little bit programming like in this answer:
http://www-level3.experts-exchange.com/questions/20743321/System-Tray-form.html
Accepted Answer from cubud
Date: 09/19/2003 04:20PM IST
Accepted Answer
Try this, it should work but I have typed it directly into the browser and might have a compile error. Alternately you could get a trayicon component from Torry.net :-)
in Application.OnMinimize do this
ShowWindow(Application.Han
This will hide the app. To show your own icon you need to use ShellAPI and do something like this
//You need this member in your main form
private
FIconData: TNotifyIconData;
//Put this code in your main form's OnCreate
FIconData.cbSize := SizeOf(TNotifyIconData);
FIconData.Wnd := Handle;
FIconData.uID := 1;
FIconData.uFlags := NIF_MESSAGE or NIF_TIP or NIF_ICON;
FIconData.uCallbackMessage
FIconData.hIcon := Application.Icon;
FIconData.szTip := PChar(Application.Title);
//Add the icon
Shell_NotifyIcon(NIM_ADD, @FIconData);
//Put this in OnDestroy of your main form
Shell_NotifyIcon(NIM_DELET
//Finally, you need to know when the icon in the tray is double clicked
private
procedure WMUSER(var Message: TMessage); message WM_USER;
//implementation
procedure TForm1.WMUSER(var Message: TMessage);
begin
if Message.LParam = WM_LBUTTONDBLCLK then
begin
ShowWindow(Application.Han
Application.Restore;
SetForegroundWindow(Applic
end;
end;
HTH,
...Snehanshu