Solved

Dynamic System Tray Icons

Posted on 2004-09-30
4
197 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
[X]
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
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

635 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