Icons do not display properly in system tray

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
SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Icons do not display properly in system tray

Post by SteveTX » Sun Jan 24, 2010 7:24 am

I am calling a 16x16 w/alpha png image to the system tray using the following code:

Code: Select all

put the id of image "xbblue.png" into theID
   set the icon to theID 
It displays the icon, but the alpha does not blend properly, and using larger sizes result in warped images. I have the file available in a .ico format with multiple embedded sizes inside (thanks to Microangelo), why can't i just use the .ico file and have it rendered properly, including alpha? How can that be done?
Last edited by SteveTX on Sat Feb 13, 2010 5:39 am, edited 1 time in total.

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Icons do not display properly

Post by SteveTX » Sun Jan 24, 2010 6:37 pm

This needs to be addressed. It looks like runrev can't handle using icon files for icons (lol). Will need to check to see why PNG is treated like 8-bit instead of 24-bit.

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Icons do not display properly in the system tray

Post by SteveTX » Sat Feb 13, 2010 4:07 am

Bump. I have been playing around a little bit more. The alpha channel is treated like a Windows TrueColor render. 100% transparent pixels are indeed transparent, but those with alpha (translucent) are displayed in matte. This is true with both 24-bit PNG and TIFFs with transparency. Resized larger images with XP-color mode appear to be downmixed to 256 colors, even under Vista.

Has anyone been able to make a system tray icon that displays properly with edges that blend into the system tray?

Can alphaData translucency be applied to images displayed in the system tray?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Icons do not display properly in system tray

Post by BvG » Sat Feb 13, 2010 12:59 pm

"the icon" is still flagged as "unsuported", and your problems are some of the reasons why that is. I don't know if RunRev will ever fix it, but meanwhile, for "seamless" taskbar support, i suggest buying the low cost sstray, by sonsothunder software:

sstray page
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: Icons do not display properly in system tray

Post by RRobert » Sat Feb 13, 2010 11:19 pm

You could also write a small Systray Add-On via AutoIt, Tapir for Mac OS X and Python on Linux.

Robert

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Icons do not display properly in system tray

Post by SteveTX » Sun Dec 05, 2010 11:41 pm

Using a 3rd party solution for each individual build isn't acceptable and is antithetical to the primary reason for using runrev. It isn't possible to take runrev serious as an application language if it can't properly support absolutely essential interface components like system tray icons. I might be willing to sponsor this bug fix, who should I contact?

glpunzi
Posts: 57
Joined: Sun Nov 28, 2010 5:50 pm
Contact:

Re: Icons do not display properly in system tray

Post by glpunzi » Mon Dec 06, 2010 11:04 am

BvG wrote:"the icon" is still flagged as "unsuported", and your problems are some of the reasons why that is. I don't know if RunRev will ever fix it, but meanwhile, for "seamless" taskbar support, i suggest buying the low cost sstray, by sonsothunder software:

sstray page
This makes me think,about runrev will not solve it,because there are a 3rd party (commercial) addon.

Uhmmm

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Icons do not display properly in system tray

Post by SteveTX » Tue Dec 07, 2010 5:31 am

If it were an addon, that would be fine. The reality is that it is a piece of crap software built for windows 95 and has nothing to do with runrev, and it doesn't work for linux or mac either. Is ANYONE at runrev listening? how can you not have built this essential thing into the codebase yet!?

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: Icons do not display properly in system tray

Post by paul_gr » Tue Dec 07, 2010 7:00 am

Get the doc below and see p11 "Status Icon Support"

http://www.runrev.com/downloads/livecod ... -4_5_2.pdf

This explains what is replacing the unsupported icon and iconMenu...

Paul

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

Re: Icons do not display properly in system tray

Post by Klaus » Tue Dec 07, 2010 12:27 pm

Dear Steve,

1. I have been using MetaCard/Revolution/Livecode for crossplatform development
since 1999 and never have missed this feature. So one could argue if this is in fact essential or not!

2. "sstray" works for "Windows 95" up to "Vista" as the webpage states and calling it "a piece of crap"
right away is definitvely not a sign of a good education!

So please stick with the common netiquette and calm down, OK?


Best from germany

Klaus

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: Icons do not display properly in system tray

Post by paul_gr » Tue Dec 07, 2010 8:00 pm

I understand SteveTX's frustration, and frustration makes us say things we might regret.

I'm primarily a Windows user that considers system tray support extremely important. I have tried SStray before but it failed if the boot drive was not C:\

I've been using Rev since 2006 and have ported a number of apps/utilities to Mac, but getting a professional looking and working trayicon on Windows is one of the issues keeping me on Windows using Visual Studio and C#/C++.

Paul

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

Re: Icons do not display properly in system tray

Post by Klaus » Tue Dec 07, 2010 11:55 pm

Hi Paul,

did you write to Ken Ray, the creator of SSTRAY?
He is a very nice person and will surely help you and may even update his SSTRAY software!

At least worth a try (as always!) :)


Best

Klaus

qberty
Posts: 14
Joined: Thu Dec 16, 2010 8:08 pm

Re: Icons do not display properly in system tray

Post by qberty » Thu Dec 16, 2010 8:28 pm

It's been years since SysTray received an update. Not that it needs one :P

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Icons do not display properly in system tray

Post by SteveTX » Wed Mar 02, 2011 12:00 am

No, I meant what I said. And statusIcon still doesn't support alpha transparency, only 8bit. Welcome back to Windows 95...

Post Reply