Solved

Dynamic System Tray Icons

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now