Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Dynamic System Tray Icons

Posted on 2004-09-30
4
193 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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