Windows任务管理器样式UI控件

时间:2023-01-21 14:57:26

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

你如何编写类似于Windows中任务管理器中的直方图UI?

The best I could find is this one.

我能找到的最好的就是这个。

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

但它是ASP.net Web UI,在我的独立可执行项目中不可用。

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.

我正在尝试编写一个与我们的硬件设备通信的性能历史记录仪表应用程序,以显示设备的读/写性能。我已经使用非常原始的屏幕绘图做了一个,并且它不如任务管理器中的直方图UI,因为它不可调整大小并且在某些监视器上闪烁疯狂,我正在考虑使用相同的UI重写UI任务管理器中的那个。

1 个解决方案

#1


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).

其次,如果您只需要这样的直方图,那么使用某种Canvas小部件/工具实现起来非常简单(取决于GUI框架)。

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

您还可以为您的环境查找绘图框架。对于.NET,有ZedGraph,对于Python有matplotlib等。

#1


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).

其次,如果您只需要这样的直方图,那么使用某种Canvas小部件/工具实现起来非常简单(取决于GUI框架)。

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

您还可以为您的环境查找绘图框架。对于.NET,有ZedGraph,对于Python有matplotlib等。