Minimize to System Tray or TSR
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Minimize to System Tray or TSR
As the topic suggest, I would like to know how to minimize to Windows's system tray, or just hide my app from the taskbar but keeps running.
Thanks,
Carel
Thanks,
Carel
Re: Minimize to System Tray or TSR
Here find your solution: http://www.sonsothunder.com/products/st ... tstray.htm
The demo to try is free.
The demo to try is free.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Minimize to System Tray or TSR
Thanks MaxV, but I've been to that page already.
Is there no way you can do this in livecode? - I've done this ages ago in VB6!
Is there no way you can do this in livecode? - I've done this ages ago in VB6!
Re: Minimize to System Tray or TSR
STSTray is for Livecode and made in Livecode.
However if you want to create your personal code, you should read this: http://livecode.wikia.com/wiki/Working_with_DLL
However if you want to create your personal code, you should read this: http://livecode.wikia.com/wiki/Working_with_DLL
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Minimize to System Tray or TSR
You can also use this code:
Code: Select all
do "myVbscript" as "VBScript"
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Minimize to System Tray or TSR
Have you considered the "hide" command? You could call "hide this stack" in a preOpenStack or preOpenCard handler.carelvos wrote:...or just hide my app from the taskbar but keeps running.l
You can also use the startUpIconic stack property.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Minimize to System Tray or TSR
Another trick is that if the stack isn't a toplevel stack it won't show in the task bar. Modeless stacks behave almost identically to toplevel stacks in most respects, so that may be an option. I'm not on a Windows OS right now so I can't check, but if modeless doesn't work, I know palettes do.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Minimize to System Tray or TSR
Thanks for everyone's input. FourthWold: I presume "hide this stack" would work on a Hide button as well, and if I put a checkbox "Do not show this again" (and save settings somewhere in an ".ini" file) and call it from preOpenStack it would work?
Could I assign a hotkey to unhide the stack again - Just so the user knows the program is running? (I haven't bothered searching, just thought of it at this moment)
Many thanks,
Carel
Could I assign a hotkey to unhide the stack again - Just so the user knows the program is running? (I haven't bothered searching, just thought of it at this moment)
Many thanks,
Carel
Re: Minimize to System Tray or TSR
http://forums.livecode.com/viewtopic.ph ... hilit=tray may be useful. If you set the system tray icon, and change the windowshape or delete the "decorations" of the stack title bar, then iconify it should show you the programming is running with the system tray icon, but without a taskbar icon. You can uniconify on choosing an option from the system tray icon menu.