Make Icon Appear Taskbar

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
shaky
Posts: 8
Joined: Sun Aug 25, 2013 12:45 pm

Make Icon Appear Taskbar

Post by shaky » Fri Nov 15, 2013 6:11 pm

hi, can anyone help me im trying to find out how i get a small icon to appear in the task bar in the bottom right corner when my program is running.

Thanks for reading, any help is appriated

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Make Icon Appear Taskbar

Post by Klaus » Fri Nov 15, 2013 6:17 pm

Hi shaky,

sorry, this is not possible with the built-in means of Livecode!

But maybe this add-on for LC helps:
http://www.sonsothunder.com/products/st ... tstray.htm


Best

Klaus

shaky
Posts: 8
Joined: Sun Aug 25, 2013 12:45 pm

Re: Make Icon Appear Taskbar

Post by shaky » Fri Nov 15, 2013 6:23 pm

thanks for the reply seen in old posts the same reply a few years back but expected it to be implemented into livecode by now, will see if i can find a way to do my project without it otherwise will try a different programming language as just at the beginning of the project.

Thanks again for fast reply.

SparkOut
Posts: 2946
Joined: Sun Sep 23, 2007 4:58 pm

Re: Make Icon Appear Taskbar

Post by SparkOut » Fri Nov 15, 2013 7:46 pm

On Windows at least it has been implemented "experimentally" since version 4.5. (I believe it is referred to in the Release Notes pdf as being available on Mac and even Linux too but can't test, and it's quite ambiguous - until the bit at the bottom of the section which refers to the change in syntax from "the iconMenu" and states that this syntax is only on Windows.)
In the release notes pdf it indicates you can "set the statusIcon to <id>" which will display the icon identified in the system tray on Windows (up to 7 anyway, I have no idea how this would relate to the Windows 8 interface). You can set the statusIconMenu and the statusIconToolTip. You can catch the statusIconMenuPick message, and catch the statusIconClick and statusIconDoubleClick messages.

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Make Icon Appear Taskbar

Post by Klaus » Fri Nov 15, 2013 7:56 pm

Oh, yes, completely forgot about that "experimental" thingie, sorry!

Some of these "experimental" items have been now more than 5 years in this "state"!
So its about time to make them "official" or really drop them! 8)

shaky
Posts: 8
Joined: Sun Aug 25, 2013 12:45 pm

Re: Make Icon Appear Taskbar

Post by shaky » Fri Nov 15, 2013 9:17 pm

thanks will give it a try would rather use livecode since i paid for the license, thanks for all the help everyone

shaky
Posts: 8
Joined: Sun Aug 25, 2013 12:45 pm

Re: Make Icon Appear Taskbar

Post by shaky » Fri Nov 15, 2013 9:38 pm

sorry been trying it can someone give me in more detail for "you can "set the statusIcon to <id>" which will display the icon identified in the system tray on Windows"
as tried a few things and cant seem to get it to work, ie on windows 8 so maybe my side thats the issue but any help would be great.

SparkOut
Posts: 2946
Joined: Sun Sep 23, 2007 4:58 pm

Re: Make Icon Appear Taskbar

Post by SparkOut » Fri Nov 15, 2013 9:52 pm

Import an image to use as an icon, and store it in a hidden part of your stack. In the property inspector, make sure the imported image is selected and read the value shown in the id field for it, for instance 21600 (just a random example). Then you can "set the statusIcon to 21600" and it should show the icon in the system tray.

shaky
Posts: 8
Joined: Sun Aug 25, 2013 12:45 pm

Re: Make Icon Appear Taskbar

Post by shaky » Fri Nov 15, 2013 10:17 pm

Excellent ;) yous have made my day works perfect

Post Reply