views:

203

answers:

1

How do you write the kind of histogram UI like the one in Task Manager in Windows?

The best I could find is this one below

http://www.codeproject.com/KB/custom-controls/performancecountercontrol.aspx

But it is ASP.net web ui, which is not usable in my standalone executable project.

I'm trying to write a performance history meter application that communicate with our hardware device to show the device read/write performance. I already did one using very primitive screen drawing, and it is not as good as the histogram UI in Task manager, as it is not resizable and flickers like crazy on certain monitor, I'm thinking of rewriting the UI using the same UI like the one in Task Manager.

A: 

First of all, you should be more specific about the programming language / environment you're using.

Second, if all you need is such a histogram, it's really quite simple to implement using some kind of a Canvas widget/tool (depends on GUI framework).

You can also look for a plotting framework for your environment. For .NET, there's ZedGraph, for Python there's matplotlib, etc.

Eli Bendersky
I understand that it's easy to implement a histogram (i've already implemented on myself), but most implemention doesn't work as well as the one seen in the 'task manager' in windows xp, i was just wondering how to use the same histogram in 'task manager', it's hidden in library somewhere i guess
andycjw