I am implementing a graphic display that shows a bar with lighting changes over time. Lights turn on and off according to a schedule.
I already have code to show a series of different colored adjacent rectangles, with the color indicating the light level. This is all drawn on a Graphics object, using FillRect.
I would like to have a ToolTip for each rectangle, showing the lighting value (in Lux). There seems to be no way to assign a ToolTip to a FillRect area, so I assume that I will have to dynamically create either Panel or PictureBox objects that show
the colors. Of course these will have to be Disposed when the window is redrawn.
In some cases, I need to show a Hatch pattern (with HatchStyle) so it will not always be a solid color.
Is there a simple and straightforward way to do this? Is there another component that I am overlooking.
I'm using VS2008 and C#, .NET 2.0.
Thanks in advance,
View Complete Post