Solved

Dynamic System Tray Icons

Posted on 2004-09-30
4
192 Views
Last Modified: 2010-04-23
I have designed an application that runs majorly as an icon in the windows system tray.  Currently, this icon contains two small 4x4 "dots"  Each of the two 4x4 areas for the dots can either be empty, representing an off state, or filled red, representing an on state.  I currently have 4 different .ico files, one for each possible state of the icon (both dots on, dot 1 on and dot 2 off, dot 2 off and dot 1 on, or both dots off).  Given different circumstances, the application changes the icon in the system tray to one of these four .ico files, representing one of the four possible states.  In a new revision of this application, each 4x4 dot in the icon needs to be able to receive any one of 16 possible states.  Rather than simply off (empty) or on (red), each 4x4 dot can be assigned one of 16 shades, ranging from empty (1), to dim red (8), to bright red(16).  It is clearly no longer feasable to create a .ico file to correspond to each possible state.  In this case, 16(dot 1) * 16 (dot 2)=256 .ico files would be necessary.  I need a way of dynamically generating VB icon objects by overlaying existing .ico files/icon objects or setting individual pixels in an icon object to specific colors within the VB code.  Also acceptable would be dynamically generating bitmaps as image objects and then transforming them into the necessary icon object type in the code.

I hope my question is clear.  I have tried to explain it as coherently as possible.

Thanks.
0
Comment
Question by:JeffN825
  • 2
4 Comments
 
LVL 1

Author Comment

by:JeffN825
ID: 12196632
More generally and simply, regardless of how it is accomplished, I need a practical way of using a single system tray icon to represent the states of two distinct "red lights", each of which can be represented with 16 degrees of "brightness".
0
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 12197867
0
 

Expert Comment

by:wayko621
ID: 12200440
maybe u can create a class that  makes a dot using the draw class and assign a rbg in it. then depending on the status of  what ever and change the density of the color or shade of the color
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12295387
Glad to help
Thanx for accepting
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question